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

[PATCH] by Anthony Loiseau <anthony.loiseau at gmail dot com>: Avoid browser...

[PATCH] by Anthony Loiseau <anthony.loiseau at gmail dot com>: Avoid browser crashing on mozilla-plugin when jumping into the media using the time-slider and no movie is loaded.
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent c2f5a92b
...@@ -810,6 +810,9 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -810,6 +810,9 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
/* jump in the movie */ /* jump in the movie */
if( i_yPos <= (i_height-30) ) if( i_yPos <= (i_height-30) )
{
/* if a movie is loaded */
if( p_md )
{ {
vlc_int64_t f_length; vlc_int64_t f_length;
libvlc_exception_init( &ex ); libvlc_exception_init( &ex );
...@@ -823,6 +826,7 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event ) ...@@ -823,6 +826,7 @@ static void ControlHandler( Widget w, XtPointer closure, XEvent *event )
libvlc_media_instance_set_time( p_md, f_length, &ex ); libvlc_media_instance_set_time( p_md, f_length, &ex );
libvlc_exception_clear( &ex ); libvlc_exception_clear( &ex );
} }
}
/* play/pause toggle */ /* play/pause toggle */
if( (i_yPos > (i_height-30)) && (i_xPos > 4) && (i_xPos <= 39) ) if( (i_yPos > (i_height-30)) && (i_xPos > 4) && (i_xPos <= 39) )
......
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