[vlc-commits] sout: transcode: fix leak w/ threads
Francois Cartegnie
git at videolan.org
Thu Jun 21 10:49:31 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun 20 17:02:02 2018 +0200| [a6fc642ec6791eef6aecef9e015f94849cb4402a] | committer: Francois Cartegnie
sout: transcode: fix leak w/ threads
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6fc642ec6791eef6aecef9e015f94849cb4402a
---
modules/stream_out/transcode/video.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 8e70eb563c..e599f48a09 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -678,13 +678,13 @@ void transcode_video_close( sout_stream_t *p_stream,
vlc_mutex_unlock( &id->lock_out );
vlc_join( id->thread, NULL );
-
- picture_fifo_Delete( id->pp_pics );
- block_ChainRelease( id->p_buffers );
}
if( p_sys->i_threads >= 1 )
{
+ picture_fifo_Delete( id->pp_pics );
+ block_ChainRelease( id->p_buffers );
+
vlc_mutex_destroy( &id->lock_out );
vlc_cond_destroy( &id->cond );
}
More information about the vlc-commits
mailing list