]> git.sesse.net Git - vlc/blobdiff - plugins/gtk/intf_gtk.c
*Removed a lock that caused late frames in DVDRead.
[vlc] / plugins / gtk / intf_gtk.c
index b5504598b11f66f5addf82bc81d7360a381c6102..79aeade9a6c27028d67d35c186160e980c46d7ac 100644 (file)
@@ -2,7 +2,7 @@
  * intf_gtk.c: Gtk+ interface
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_gtk.c,v 1.21 2001/05/23 23:08:20 stef Exp $
+ * $Id: intf_gtk.c,v 1.25 2001/05/31 12:45:39 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -42,7 +42,6 @@
 #include "threads.h"
 #include "mtime.h"
 #include "tests.h"
-#include "modules.h"
 
 #include "stream_control.h"
 #include "input_ext-intf.h"
@@ -63,6 +62,9 @@
 
 #include "main.h"
 
+#include "modules.h"
+#include "modules_export.h"
+
 /*****************************************************************************
  * Local prototypes.
  *****************************************************************************/
@@ -321,6 +323,7 @@ static gint GtkManage( gpointer p_data )
         if( p_intf->p_input->stream.b_changed )
         {
             GtkModeManage( p_intf );
+            GtkSetupMenus( p_intf );
         }
 
         /* Manage the slider */
@@ -356,7 +359,6 @@ static gint GtkManage( gpointer p_data )
             }
 #undef p_area
         }
-        vlc_mutex_unlock( &p_intf->p_input->stream.stream_lock );
 
         if( p_intf->p_sys->i_part !=
             p_intf->p_input->stream.p_selected_area->i_part )
@@ -365,6 +367,8 @@ static gint GtkManage( gpointer p_data )
             GtkSetupMenus( p_intf );
         }
 
+        vlc_mutex_unlock( &p_intf->p_input->stream.stream_lock );
+
     }
     else if( !p_intf->b_die )
     {