Waits for video source stopping after it was signaled to stop using SignalToStop method. If SignalToStop was not called, then it will be called automatically.
public void WaitForStop() { CheckForCrossThreadAccess(); if (!requestedToStop) { SignalToStop(); } if (videoSource != null) { videoSource.WaitForStop(); if (currentFrame != null) { currentFrame.Dispose(); currentFrame = null; } Invalidate(); } }