public HResult OnClockStop(long hnsSystemTime) { Debug.WriteLine("MediaSink:OnClockStop"); HResult hr; lock (this) { if (IsShutdown) { return(MF_E_SHUTDOWN); } hr = StreamSink.Stop(); } return(hr); }