[vlc-devel] [PATCH 05/22] filter_chain: reorder code to make it more obvious we're popping a picture

Steve Lhomme robux4 at ycbcr.xyz
Thu Sep 17 17:33:27 CEST 2020


---
 src/misc/filter_chain.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index e52f73f5bab..5465e0c608c 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -453,9 +453,9 @@ picture_t *filter_chain_VideoFilter( filter_chain_t *p_chain, picture_t *p_pic )
     }
     for( chained_filter_t *b = p_chain->last; b != NULL; b = b->prev )
     {
-        p_pic = b->pending;
-        if( !p_pic )
+        if( !b->pending )
             continue;
+        p_pic = b->pending;
         b->pending = p_pic->p_next;
         p_pic->p_next = NULL;
 
-- 
2.26.2



More information about the vlc-devel mailing list