[vlc-devel] commit: Compile fix on windows: vlc_mutex_init() now returns void ( corrected). (JP Dinger )

git version control git at videolan.org
Mon May 25 15:36:56 CEST 2009


vlc | branch: master | JP Dinger <jpd at videolan.org> | Mon May 25 15:15:51 2009 +0200| [518dc329561a31bc85007c9b20746425efe5febb] | committer: JP Dinger 

Compile fix on windows: vlc_mutex_init() now returns void (corrected).

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

 include/vlc_gcrypt.h |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/include/vlc_gcrypt.h b/include/vlc_gcrypt.h
index cd5ffd5..4d94344 100644
--- a/include/vlc_gcrypt.h
+++ b/include/vlc_gcrypt.h
@@ -38,18 +38,13 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL;
 
 static int gcry_vlc_mutex_init( void **p_sys )
 {
-    int i_val;
     vlc_mutex_t *p_lock = (vlc_mutex_t *)malloc( sizeof( vlc_mutex_t ) );
-
     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 );
+    *p_sys = p_lock;
+    return VLC_SUCCESS;
 }
 
 static int gcry_vlc_mutex_destroy( void **p_sys )




More information about the vlc-devel mailing list