diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c index 9503f9c5e5acd32a05286d8b5c5ae8eaa53f370d..39f5b8b1738a957f2cba49f64d5cb1d8fbaa7a53 100644 --- a/modules/stream_out/transcode/video.c +++ b/modules/stream_out/transcode/video.c @@ -107,14 +107,14 @@ static void* EncoderThread( void *obj ) /*Now flush encoder*/ do { - p_block = id->p_encoder->pf_encode_video(id->p_encoder, NULL ); - block_ChainAppend( &p_sys->p_buffers, p_block ); + p_block = id->p_encoder->pf_encode_video(id->p_encoder, NULL ); + block_ChainAppend( &p_sys->p_buffers, p_block ); } while( p_block ); vlc_mutex_unlock( &p_sys->lock_out ); - vlc_restorecancel (canc); + return NULL; }