npapi-vlc | branch: master | Cheng Sun <[email protected]> | Sun Jan 8 18:18:01 2012 +0000| [dfc77fcc0846b8c3308e2e4ffc5d53e337876f94] | committer: Jean-Baptiste Kempf
GTK: Don't show the cone when video is paused > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=dfc77fcc0846b8c3308e2e4ffc5d53e337876f94 --- npapi/vlcplugin_gtk.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/npapi/vlcplugin_gtk.cpp b/npapi/vlcplugin_gtk.cpp index 1d24422..4499c94 100644 --- a/npapi/vlcplugin_gtk.cpp +++ b/npapi/vlcplugin_gtk.cpp @@ -314,7 +314,11 @@ static void fullscreen_win_visibility_handler(GtkWidget *widget, gpointer user_d void VlcPluginGtk::update_controls() { if (libvlc_media_player) { - if (!libvlc_media_player_is_playing(libvlc_media_player)) { + libvlc_state_t state = libvlc_media_player_get_state(libvlc_media_player); + bool is_stopped = (state == libvlc_Stopped) || + (state == libvlc_Ended) || + (state == libvlc_Error); + if (is_stopped) { XUnmapWindow(display, video_xwindow); } else { XMapWindow(display, video_xwindow); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
