From: Jean-Paul Saman Date: Mon, 25 Feb 2008 09:22:34 +0000 (+0000) Subject: Fixed another crash with fullscreen in mozilla toolbar. X-Git-Tag: 0.9.0-test0~2534 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cd2efd35efee7ecc7554bccedfec858d06b04020;p=vlc Fixed another crash with fullscreen in mozilla toolbar. --- diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp index 5ee39b49b9..9a0a4d5daf 100644 --- a/projects/mozilla/vlcshell.cpp +++ b/projects/mozilla/vlcshell.cpp @@ -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 */