Commit 390b9dcb authored by Rafaël Carré's avatar Rafaël Carré

fix compilation on win32

parent 8c55b826
...@@ -129,22 +129,22 @@ static int gcry_vlc_mutex_init( void **p_sys ) ...@@ -129,22 +129,22 @@ static int gcry_vlc_mutex_init( void **p_sys )
static int gcry_vlc_mutex_destroy( void **p_sys ) static int gcry_vlc_mutex_destroy( void **p_sys )
{ {
int i_val;
vlc_mutex_t *p_lock = (vlc_mutex_t *)*p_sys; vlc_mutex_t *p_lock = (vlc_mutex_t *)*p_sys;
vlc_mutex_destroy( p_lock );
i_val = vlc_mutex_destroy( p_lock );
free( p_lock ); free( p_lock );
return i_val; return VLC_SUCCESS;
} }
static int gcry_vlc_mutex_lock( void **p_sys ) static int gcry_vlc_mutex_lock( void **p_sys )
{ {
return vlc_mutex_lock( (vlc_mutex_t *)*p_sys ); vlc_mutex_lock( (vlc_mutex_t *)*p_sys );
return VLC_SUCCESS;
} }
static int gcry_vlc_mutex_unlock( void **lock ) static int gcry_vlc_mutex_unlock( void **lock )
{ {
return vlc_mutex_unlock( (vlc_mutex_t *)*lock ); vlc_mutex_unlock( (vlc_mutex_t *)*lock );
return VLC_SUCCESS;
} }
static struct gcry_thread_cbs gcry_threads_vlc = static struct gcry_thread_cbs gcry_threads_vlc =
......
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