Commit 518dc329 authored by JP Dinger's avatar JP Dinger

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

parent b9646f8f
...@@ -38,18 +38,13 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL; ...@@ -38,18 +38,13 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL;
static int gcry_vlc_mutex_init( void **p_sys ) 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 ) ); vlc_mutex_t *p_lock = (vlc_mutex_t *)malloc( sizeof( vlc_mutex_t ) );
if( p_lock == NULL) if( p_lock == NULL)
return ENOMEM; return ENOMEM;
i_val = vlc_mutex_init( p_lock ); vlc_mutex_init( p_lock );
if( i_val )
free( p_lock );
else
*p_sys = p_lock; *p_sys = p_lock;
return i_val; return VLC_SUCCESS;
} }
static int gcry_vlc_mutex_destroy( void **p_sys ) static int gcry_vlc_mutex_destroy( void **p_sys )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment