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

More cases were p_md was not checked in Mozilla toolbar code.

parent adc068db
...@@ -860,7 +860,7 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -860,7 +860,7 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
i_playing = libvlc_playlist_isplaying( p_plugin->getVLC(), &ex ); i_playing = libvlc_playlist_isplaying( p_plugin->getVLC(), &ex );
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
if( i_playing == 1 ) if( (i_playing == 1) && p_md )
{ {
libvlc_exception_init( &ex ); libvlc_exception_init( &ex );
libvlc_set_fullscreen( p_md, 1, &ex ); libvlc_set_fullscreen( p_md, 1, &ex );
...@@ -875,7 +875,8 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -875,7 +875,8 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
libvlc_audio_toggle_mute( p_plugin->getVLC(), &ex ); libvlc_audio_toggle_mute( p_plugin->getVLC(), &ex );
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
} }
libvlc_media_instance_release( p_md );
if( p_md ) libvlc_media_instance_release( p_md );
} }
Redraw( w, closure, event ); Redraw( w, closure, event );
} }
......
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