Commit bf56c2bd authored by Laurent Aimar's avatar Laurent Aimar

Fixed potential race condition on vout release in decoder.

parent a3b364aa
...@@ -1559,8 +1559,12 @@ static picture_t *vout_new_buffer( decoder_t *p_dec ) ...@@ -1559,8 +1559,12 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
p_dec->fmt_out.video.i_chroma = p_dec->fmt_out.i_codec; p_dec->fmt_out.video.i_chroma = p_dec->fmt_out.i_codec;
p_owner->video = p_dec->fmt_out.video; p_owner->video = p_dec->fmt_out.video;
p_vout = vout_Request( p_dec, p_owner->p_vout, vlc_mutex_lock( &p_owner->lock );
&p_dec->fmt_out.video ); p_vout = p_owner->p_vout;
p_owner->p_vout = NULL;
vlc_mutex_unlock( &p_owner->lock );
p_vout = vout_Request( p_dec, p_vout, &p_dec->fmt_out.video );
vlc_mutex_lock( &p_owner->lock ); vlc_mutex_lock( &p_owner->lock );
p_owner->p_vout = p_vout; p_owner->p_vout = p_vout;
......
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