[vlc-devel] [PATCH 2/2] mosaic: use vlc_picture_chain_HasNext to check if we can drop a picture

Steve Lhomme robux4 at ycbcr.xyz
Thu Oct 15 16:33:22 CEST 2020


picture_HasChainedPics() should be avoided if possible
---
 modules/spu/mosaic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/spu/mosaic.c b/modules/spu/mosaic.c
index ef2b6a955e3..9d41808a93c 100644
--- a/modules/spu/mosaic.c
+++ b/modules/spu/mosaic.c
@@ -536,7 +536,7 @@ static subpicture_t *Filter( filter_t *p_filter, vlc_tick_t date )
             if ( front->date + p_sys->i_delay >= date )
                 break; // front picture not late
 
-            if ( picture_HasChainedPics( front ) )
+            if ( vlc_picture_chain_HasNext( &p_es->pictures ) )
             {
                 // front picture is late and has more pictures chained, skip it
                 front = vlc_picture_chain_PopFront( &p_es->pictures );
-- 
2.26.2



More information about the vlc-devel mailing list