[vlc-commits] vdpau: use the picture_chain API

Steve Lhomme git at videolan.org
Wed Sep 23 16:18:03 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 17 16:53:39 2020 +0200| [c8abf5ac9084c914dd993a63dde39a52519e4912] | committer: Steve Lhomme

vdpau: use the picture_chain API

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

 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 0302c640e5..bd66a61d1b 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)
     {



More information about the vlc-commits mailing list