From: RĂ©mi Denis-Courmont Date: Thu, 3 Jun 2010 21:10:35 +0000 (+0300) Subject: Fix missing lock in 440126cfb7322950d14f7029dd424c4f4bd41ad X-Git-Tag: 1.2.0-pre1~6320 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=57e6c0256e59dc699192e371436ef96bfac28009;p=vlc Fix missing lock in 440126cfb7322950d14f7029dd424c4f4bd41ad --- diff --git a/src/interface/interface.c b/src/interface/interface.c index 9268391525..5c674d2872 100644 --- a/src/interface/interface.c +++ b/src/interface/interface.c @@ -128,6 +128,7 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module ) goto error; } + vlc_mutex_lock( &lock ); #if defined( __APPLE__ ) || defined( WIN32 ) /* Hack to get Mac OS X Cocoa runtime running * (it needs access to the main thread) */