]> git.sesse.net Git - vlc/commitdiff
Gestures: Really remove unwanted commit. (Oops).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 25 Mar 2007 12:16:55 +0000 (12:16 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 25 Mar 2007 12:16:55 +0000 (12:16 +0000)
modules/control/gestures.c

index 8c8d17d7ac9972d4b27c9283c3c33f4bb8ce3ede..2d046dbea932a5489b4635d2ce8866c111de4a2a 100644 (file)
@@ -110,10 +110,6 @@ int E_(Open) ( vlc_object_t *p_this )
 {
     intf_thread_t *p_intf = (intf_thread_t *)p_this;
 
-    vlc_mutex_lock( &p_intf->change_lock );
-    p_intf->p_sys->p_vout = NULL;
-    vlc_mutex_unlock( &p_intf->change_lock );
-
     /* Allocate instance and initialize some members */
     p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
     if( p_intf->p_sys == NULL )
@@ -170,6 +166,10 @@ static void RunIntf( intf_thread_t *p_intf )
 {
     playlist_t * p_playlist = NULL;
 
+    vlc_mutex_lock( &p_intf->change_lock );
+    p_intf->p_sys->p_vout = NULL;
+    vlc_mutex_unlock( &p_intf->change_lock );
+
     if( InitThread( p_intf ) < 0 )
     {
         msg_Err( p_intf, "can't initialize interface thread" );