[vlc-commits] GTK: Don't show the cone when video is paused

Cheng Sun git at videolan.org
Fri Jan 13 12:47:24 CET 2012


npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Sun Jan  8 18:18:01 2012 +0000| [434258ebfdad801178d5304ee98566763b24a43a] | 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=434258ebfdad801178d5304ee98566763b24a43a
---

 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 be38b7a..ee9aae0 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);



More information about the vlc-commits mailing list