[vlc-commits] codec: use picture_HasChainedPics instead of access p_next

Steve Lhomme git at videolan.org
Wed Sep 23 16:17:46 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 17 14:05:47 2020 +0200| [9428e4a213c91c43d0c64157b0fac8b52256da50] | committer: Steve Lhomme

codec: use picture_HasChainedPics instead of access p_next

This makes the code less dependent on how picture chains are stored.

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

 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 81c2cb5d14..7ab479ae32 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 );
 }



More information about the vlc-commits mailing list