Commit cd2efd35 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fixed another crash with fullscreen in mozilla toolbar.

parent f90b88ab
...@@ -998,11 +998,19 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -998,11 +998,19 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
/* fullscreen */ /* fullscreen */
if( (i_yPos > (i_height-30)) && (i_xPos >= 67) && (i_xPos < 94) ) if( (i_yPos > (i_height-30)) && (i_xPos >= 67) && (i_xPos < 94) )
{
int i_playing;
libvlc_exception_init( &ex );
i_playing = libvlc_playlist_isplaying( p_plugin->getVLC(), &ex );
libvlc_exception_clear( &ex );
if( i_playing == 1 )
{ {
libvlc_exception_init( &ex ); libvlc_exception_init( &ex );
libvlc_set_fullscreen( p_md, 1, &ex ); libvlc_set_fullscreen( p_md, 1, &ex );
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
} }
}
/* mute toggle */ /* mute toggle */
if( (i_yPos > (i_height-30)) && (i_xPos >= 94) && (i_xPos < 109)) if( (i_yPos > (i_height-30)) && (i_xPos >= 94) && (i_xPos < 109))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment