]> git.sesse.net Git - vlc/commitdiff
Compile fix on windows -- vlc_mutex_init() now returns void.
authorJP Dinger <jpd@videolan.org>
Mon, 25 May 2009 12:38:34 +0000 (14:38 +0200)
committerJP Dinger <jpd@videolan.org>
Mon, 25 May 2009 12:40:32 +0000 (14:40 +0200)
include/vlc_gcrypt.h

index cd5ffd54572cefabaf9f07270041a4da4cc938f5..db054f42c3d81176f8634cdbcba5f073b61db452 100644 (file)
@@ -44,12 +44,8 @@ static int gcry_vlc_mutex_init( void **p_sys )
     if( p_lock == NULL)
         return ENOMEM;
 
-    i_val = vlc_mutex_init( p_lock );
-    if( i_val )
-        free( p_lock );
-    else
-        *p_sys = p_lock;
-    return i_val;
+    vlc_mutex_init( p_lock );
+    return VLC_SUCCESS;
 }
 
 static int gcry_vlc_mutex_destroy( void **p_sys )