Commit 9f3dc2d6 authored by Rémi Duraffort's avatar Rémi Duraffort

x264: no need to create the variables when closing the module: this is already

done when the module is created.
parent 91e6499b
......@@ -1311,7 +1311,7 @@ static int Open ( vlc_object_t *p_this )
}
/* We need to initialize pthreadw32 before we open the encoder,
but only oncce for the whole application. Since pthreadw32
but only once for the whole application. Since pthreadw32
doesn't keep a refcount, do it ourselves. */
#ifdef PTW32_STATIC_LIB
vlc_value_t lock, count;
......@@ -1492,11 +1492,9 @@ static void Close( vlc_object_t *p_this )
#ifdef PTW32_STATIC_LIB
vlc_value_t lock, count;
var_Create( p_enc->p_libvlc, "pthread_win32_mutex", VLC_VAR_MUTEX );
var_Get( p_enc->p_libvlc, "pthread_win32_mutex", &lock );
vlc_mutex_lock( lock.p_address );
var_Create( p_enc->p_libvlc, "pthread_win32_count", VLC_VAR_INTEGER );
var_Get( p_enc->p_libvlc, "pthread_win32_count", &count );
count.i_int--;
var_Set( p_enc->p_libvlc, "pthread_win32_count", count );
......
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