[vlc-devel] commit: Gtk_main: fix compilation.... Completly untested. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Sat May 16 23:26:48 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 16 23:10:09 2009 +0200| [c85283ef795a4edfeb6cbee1af5e48a47580ddc2] | committer: Jean-Baptiste Kempf 

Gtk_main: fix compilation.... Completly untested.

Should we keep this code?

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c85283ef795a4edfeb6cbee1af5e48a47580ddc2
---

 modules/misc/gtk_main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/misc/gtk_main.c b/modules/misc/gtk_main.c
index 4941138..b127e5a 100644
--- a/modules/misc/gtk_main.c
+++ b/modules/misc/gtk_main.c
@@ -94,7 +94,7 @@ static int Open( vlc_object_t *p_this )
     if( i_refcount > 0 )
     {
         i_refcount++;
-        vlc_mutex_unlock( lock );
+        vlc_mutex_unlock( &gtk_lock );
 
         return VLC_SUCCESS;
     }
@@ -110,11 +110,11 @@ static int Open( vlc_object_t *p_this )
     /* Launch the gtk_main() thread. It will not return until it has
      * called gdk_threads_enter(), which ensures us thread safety. */
     if( vlc_thread_create( p_gtk_main, "gtk_main", GtkMain,
-                           VLC_THREAD_PRIORITY_LOW, true ) )
+                           VLC_THREAD_PRIORITY_LOW ) )
     {
         vlc_object_release( p_gtk_main );
         i_refcount--;
-        vlc_mutex_unlock( lock );
+        vlc_mutex_unlock( &gtk_lock );
         return VLC_ETHREAD;
     }
 




More information about the vlc-devel mailing list