[vlc-devel] [PATCH v2 02/24] codec: use picture_has_chained_pics instead of access p_next
Steve Lhomme
robux4 at ycbcr.xyz
Fri Sep 18 16:45:08 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..48c992d3fbb 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_has_chained_pics( 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