[vlc-commits] mosaic: use vlc_picture_chain_HasNext to check if we can drop a picture

Steve Lhomme git at videolan.org
Mon Oct 19 09:35:49 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Oct 15 16:21:48 2020 +0200| [e8b1701a2baadb7e93b182607161f650c51e19b4] | committer: Steve Lhomme

mosaic: use vlc_picture_chain_HasNext to check if we can drop a picture

picture_HasChainedPics() should be avoided if possible

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8b1701a2baadb7e93b182607161f650c51e19b4
---

 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 ef2b6a955e..9d41808a93 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 );



More information about the vlc-commits mailing list