/// <summary> /// Adds the LT Net Demux filter to the graph /// </summary> private void AddLTNetDemux() { int hr; netDemux = (IBaseFilter) new LMNetDmx(); hr = graph.AddFilter(netDemux, "LEAD NetDmx"); DsError.ThrowExceptionForHR(hr); lmNetDemux = (LMNetDmx)netDemux; }
private void AddLeadNetDemux() { int hr; _netDmx = (IBaseFilter) new LMNetDmx(); hr = _graphBuilder.AddFilter(_netDmx, "LEAD NetDmx"); DsError.ThrowExceptionForHR(hr); _netDmxCtl = (LMNetDmx)_netDmx; }
/// <summary> /// Destroys the DirectShow graph and releases all resources /// </summary> protected override void Dispose(bool isDisposing) { lock (instanceMutex) { if (_netDmx != null) { Marshal.ReleaseComObject(_netDmx); _netDmx = null; _lmNetDmx = null; } } base.Dispose(isDisposing); }