コード例 #1
0
ファイル: Player.cs プロジェクト: isabella232/gnome-subtitles
        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;
        }
コード例 #2
0
ファイル: Player.cs プロジェクト: sahwar/gnome-subtitles
 public void Dispose()
 {
     Close();
     playbin.Dispose();
 }