Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     Close();
     playbin.Dispose();
 }