private void DisposePlaybin() { playbin.Error -= OnPlaybinError; playbin.EndOfStream -= OnPlaybinEndOfStream; playbin.StateChanged -= OnPlaybinStateChanged; playbin.FoundVideoInfo -= OnPlaybinFoundVideoInfo; playbin.FoundTag -= OnPlaybinFoundTag; Widget videoWidget = playbin.GetVideoWidget(); frame.Remove(videoWidget); playbin.Dispose(); playbin = null; }
public void Dispose() { Close(); playbin.Dispose(); }