Commit 7326416c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Fix previous commit

parent 25487d2c
......@@ -91,7 +91,7 @@ int E_(InitAudioDec)( decoder_t *p_dec, AVCodecContext *p_context,
decoder_sys_t *p_sys;
vlc_value_t lockval;
var_Create( p_object->p_libvlc_global, "avcodec", VLC_VAR_MUTEX );
var_Create( p_dec->p_libvlc_global, "avcodec", VLC_VAR_MUTEX );
var_Get( p_dec->p_libvlc_global, "avcodec", &lockval );
/* Allocate the memory needed to store the decoder's structure */
......
......@@ -197,7 +197,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
vlc_value_t val;
vlc_value_t lockval;
var_Create( p_object->p_libvlc_global, "avcodec", VLC_VAR_MUTEX );
var_Create( p_enc->p_libvlc_global, "avcodec", VLC_VAR_MUTEX );
var_Get( p_enc->p_libvlc_global, "avcodec", &lockval );
if( !E_(GetFfmpegCodec)( p_enc->fmt_out.i_codec, &i_cat, &i_codec_id,
......
......@@ -217,7 +217,7 @@ int E_(InitVideoDec)( decoder_t *p_dec, AVCodecContext *p_context,
vlc_value_t lockval;
vlc_value_t val;
var_Create( p_object->p_libvlc_global, "avcodec", VLC_VAR_MUTEX );
var_Create( p_dec->p_libvlc_global, "avcodec", VLC_VAR_MUTEX );
var_Get( p_dec->p_libvlc_global, "avcodec", &lockval );
/* Allocate the memory needed to store the decoder's structure */
......
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