Commit 3bcc216c authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/gtk/gnome.c, modules/gui/gtk/gtk.c: input_Seek() was incorrectly triggered while playing some
DVD menus.
parent 725c0117
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gnome.c : Gnome plugin for vlc * gnome.c : Gnome plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000 VideoLAN * Copyright (C) 2000 VideoLAN
* $Id: gnome.c,v 1.7 2003/01/26 14:49:09 fenrir Exp $ * $Id: gnome.c,v 1.8 2003/01/26 22:57:21 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -428,8 +428,10 @@ static void Manage( intf_thread_t *p_intf ) ...@@ -428,8 +428,10 @@ static void Manage( intf_thread_t *p_intf )
"value_changed" ); "value_changed" );
} }
/* Otherwise, send message to the input if the user has /* Otherwise, send message to the input if the user has
* finished dragging the slider */ * finished dragging the slider.
else if( p_intf->p_sys->b_slider_free ) * Beware, the hack below is needed by the dvdplay plugin! */
else if( p_intf->p_sys->b_slider_free
/* hack -> */ && (p_intf->p_sys->f_adj_oldvalue <= 100.) )
{ {
if( newvalue > 0. && newvalue < 100. ) if( newvalue > 0. && newvalue < 100. )
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk.c : Gtk+ plugin for vlc * gtk.c : Gtk+ plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: gtk.c,v 1.12 2003/01/26 14:49:09 fenrir Exp $ * $Id: gtk.c,v 1.13 2003/01/26 22:57:21 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -446,8 +446,10 @@ static int Manage( intf_thread_t *p_intf ) ...@@ -446,8 +446,10 @@ static int Manage( intf_thread_t *p_intf )
"value_changed" ); "value_changed" );
} }
/* Otherwise, send message to the input if the user has /* Otherwise, send message to the input if the user has
* finished dragging the slider */ * finished dragging the slider.
else if( p_intf->p_sys->b_slider_free ) * Beware, the hack below is needed by the dvdplay plugin! */
else if( p_intf->p_sys->b_slider_free
/* hack -> */ && (p_intf->p_sys->f_adj_oldvalue <= 100.) )
{ {
off_t i_seek = ( newvalue * p_area->i_size ) / 100; off_t i_seek = ( newvalue * p_area->i_size ) / 100;
......
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