]> git.sesse.net Git - vlc/commitdiff
Fixed another crash with fullscreen in mozilla toolbar.
authorJean-Paul Saman <jpsaman@videolan.org>
Mon, 25 Feb 2008 09:22:34 +0000 (09:22 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Mon, 25 Feb 2008 09:22:34 +0000 (09:22 +0000)
projects/mozilla/vlcshell.cpp

index 5ee39b49b98f6f9a6bbcf4d29298e62d219ef601..9a0a4d5daf8864fde9390d2ebc4c75bc59a25466 100644 (file)
@@ -999,9 +999,17 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
         /* fullscreen */
         if( (i_yPos > (i_height-30)) && (i_xPos >= 67) && (i_xPos < 94) )
         {
+            int i_playing;
             libvlc_exception_init( &ex );
-            libvlc_set_fullscreen( p_md, 1, &ex );
+            i_playing = libvlc_playlist_isplaying( p_plugin->getVLC(), &ex );
             libvlc_exception_clear( &ex );
+
+            if( i_playing == 1 )
+            {
+                libvlc_exception_init( &ex );
+                libvlc_set_fullscreen( p_md, 1, &ex );
+                libvlc_exception_clear( &ex );
+            }
         }
 
         /* mute toggle */