vlc | branch: master | Steve Lhomme <[email protected]> | 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 ); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
