[vlc-commits] filter_chain: simplify pending picture usage
Steve Lhomme
git at videolan.org
Fri Oct 9 13:41:09 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Oct 7 09:13:03 2020 +0200| [a3e68b086d03ce24801cea5b1124b00c40eb495b] | committer: Steve Lhomme
filter_chain: simplify pending picture usage
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3e68b086d03ce24801cea5b1124b00c40eb495b
---
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 a97e2de4ae..a71b6a3c9a 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -455,8 +455,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 )
More information about the vlc-commits
mailing list