[vlc-devel] [PATCH] filter_chain: simplify pending picture usage
Steve Lhomme
robux4 at ycbcr.xyz
Wed Oct 7 09:15:25 CEST 2020
Getting the front of the picture chain and settings the picture chain to the
rest of the chain is exactly like popping a picture from the front of the chain.
---
src/misc/filter_chain.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index 176135bc0d2..0b0e2208f23 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -454,8 +454,7 @@ picture_t *filter_chain_VideoFilter( filter_chain_t *p_chain, picture_t *p_pic )
{
if( vlc_picture_chain_IsEmpty( &b->pending ) )
continue;
- p_pic = b->pending.front;
- b->pending = picture_GetAndResetChain( p_pic );
+ p_pic = vlc_picture_chain_PopFront( &b->pending );
p_pic = FilterChainVideoFilter( b->next, p_pic );
if( p_pic )
--
2.26.2
More information about the vlc-devel
mailing list