Commit a6fc642e authored by François Cartegnie's avatar François Cartegnie 🤞

sout: transcode: fix leak w/ threads

parent 55a1c1a0
......@@ -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 );
}
......
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