vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Wed Jul 4 22:39:54 2018 +0200| [b31c30dddb6d4c011d349d0e4bf2ec20a6493bb3] | committer: Francois Cartegnie
transcode: video: fix leak with threads > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b31c30dddb6d4c011d349d0e4bf2ec20a6493bb3 --- modules/stream_out/transcode/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c index 17e47971d6..48719fac38 100644 --- a/modules/stream_out/transcode/video.c +++ b/modules/stream_out/transcode/video.c @@ -895,7 +895,7 @@ error: { /* Pick up any return data the encoder thread wants to output. */ vlc_mutex_lock( &id->lock_out ); - *out = id->p_buffers; + block_ChainAppend( out, id->p_buffers ); id->p_buffers = NULL; vlc_mutex_unlock( &id->lock_out ); } @@ -915,7 +915,7 @@ error: { msg_Dbg( p_stream, "Flushing thread and waiting that"); transcode_video_encoder_close( p_stream, id ); - *out = id->p_buffers; + block_ChainAppend( out, id->p_buffers ); id->p_buffers = NULL; msg_Dbg( p_stream, "Flushing done"); } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits