/// <summary> /// Another filter's output wants to connect to us /// </summary> public int ReceiveConnection(IPin pReceivePin, AMMediaType pmt) { _MediaType = pmt; _ConnectedPin = pReceivePin; HRESULT hr = OnReceiveConnection(pReceivePin, pmt); if (!HR.SUCCESS(hr)) { _ConnectedPin = null; _MediaType = null; } else { ResolveConnectedFilter(); } unchecked { return((int)hr); } }