public H262StreamHandler(PesStreamParameters parameters) : base(parameters) { if (null == parameters) throw new ArgumentNullException(nameof(parameters)); if (null == parameters.PesPacketPool) throw new ArgumentException("PesPacketPool cannot be null", nameof(parameters)); if (null == parameters.NextHandler) throw new ArgumentException("NextHandler cannot be null", nameof(parameters)); _pesPacketPool = parameters.PesPacketPool; _nextHandler = parameters.NextHandler; _configurator = new H262Configurator(parameters.MediaStreamMetadata, parameters.StreamType.Description); }
public H262StreamHandler(PesStreamParameters parameters) : base(parameters) { if (null == parameters) { throw new ArgumentNullException("parameters"); } if (null == parameters.PesPacketPool) { throw new ArgumentException("PesPacketPool cannot be null", "parameters"); } if (null == parameters.NextHandler) { throw new ArgumentException("NextHandler cannot be null", "parameters"); } this._pesPacketPool = parameters.PesPacketPool; this._nextHandler = parameters.NextHandler; this._configurator = new H262Configurator(parameters.MediaStreamMetadata, parameters.StreamType.Description); }