[vlc-devel] [PATCH v4 02/24] codec: use picture_HasChainedPics instead of access p_next

Steve Lhomme robux4 at ycbcr.xyz
Mon Sep 21 13:48:00 CEST 2020


This makes the code less dependent on how picture chains are stored.
---
 include/vlc_codec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_codec.h b/include/vlc_codec.h
index 81c2cb5d142..7ab479ae32d 100644
--- a/include/vlc_codec.h
+++ b/include/vlc_codec.h
@@ -390,7 +390,7 @@ VLC_API void decoder_Clean( decoder_t *p_dec );
 static inline void decoder_QueueVideo( decoder_t *dec, picture_t *p_pic )
 {
     vlc_assert( dec->fmt_in.i_cat == VIDEO_ES && dec->cbs != NULL );
-    vlc_assert( p_pic->p_next == NULL );
+    vlc_assert( !picture_HasChainedPics( p_pic ) );
     vlc_assert( dec->cbs->video.queue != NULL );
     dec->cbs->video.queue( dec, p_pic );
 }
-- 
2.26.2



More information about the vlc-devel mailing list