[vlc-commits] transcode: use vlc_picture_chain_GetAndClear
Steve Lhomme
git at videolan.org
Tue Oct 6 13:27:26 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Sep 25 08:46:09 2020 +0200| [b11868d9efce8217ba46da918ea4b9b495964a36] | committer: Steve Lhomme
transcode: use vlc_picture_chain_GetAndClear
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b11868d9efce8217ba46da918ea4b9b495964a36
---
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 5acec51235..dd3093a969 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -157,9 +157,9 @@ static void decoder_queue_video( decoder_t *p_dec, picture_t *p_pic )
static vlc_picture_chain_t transcode_dequeue_all_pics( sout_stream_id_sys_t *id )
{
+ vlc_picture_chain_t p_pics;
vlc_mutex_lock(&id->fifo.lock);
- vlc_picture_chain_t p_pics = id->fifo.pic;
- vlc_picture_chain_Init( &id->fifo.pic );
+ vlc_picture_chain_GetAndClear(&id->fifo.pic, &p_pics);
vlc_mutex_unlock(&id->fifo.lock);
return p_pics;
More information about the vlc-commits
mailing list