[vlc-commits] filter_chain: reorder code to make it more obvious we're popping a picture
Steve Lhomme
git at videolan.org
Wed Sep 23 16:17:49 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 17 14:56:09 2020 +0200| [05d432f385ed147389d4f1725b079624e236453f] | committer: Steve Lhomme
filter_chain: reorder code to make it more obvious we're popping a picture
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05d432f385ed147389d4f1725b079624e236453f
---
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 e52f73f5ba..5465e0c608 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;
More information about the vlc-commits
mailing list