[vlc-devel] [PATCH v4 17/24] vdpau: use the picture_chain API

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


---
 modules/hw/vdpau/deinterlace.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/hw/vdpau/deinterlace.c b/modules/hw/vdpau/deinterlace.c
index 0302c640e54..bd66a61d1b0 100644
--- a/modules/hw/vdpau/deinterlace.c
+++ b/modules/hw/vdpau/deinterlace.c
@@ -77,8 +77,8 @@ static picture_t *Deinterlace(filter_t *filter, picture_t *src)
     dst->i_nb_fields = 1;
     src->i_nb_fields = 1;
 
-    assert(src->p_next == NULL);
-    src->p_next = dst;
+    assert(!picture_HasChainedPics(src));
+    vlc_picture_chain_AppendChain( src, dst );
 
     if (src->b_progressive || src->b_top_field_first)
     {
-- 
2.26.2



More information about the vlc-devel mailing list