From f09d9ff2ab93fbbab3a3f89d43bd72a59e49ef38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 21 Nov 2016 18:42:02 +0100 Subject: [PATCH] vaapidecode: negotiate after destroying allocator This is related with bug 758907 when no vaapipostproc is used (no vaapidecodebin). In order to negotiate downstream we need to destroy the source pad allocator, otherwise the same allocated buffers are used, failing the mapping. --- gst/vaapi/gstvaapidecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 74e9ce6..0279cef 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -469,10 +469,10 @@ gst_vaapidecode_negotiate (GstVaapiDecode * decode) return FALSE; if (!gst_vaapidecode_update_src_caps (decode)) return FALSE; - if (!gst_video_decoder_negotiate (vdec)) - return FALSE; if (!gst_vaapi_plugin_base_set_caps (plugin, NULL, decode->srcpad_caps)) return FALSE; + if (!gst_video_decoder_negotiate (vdec)) + return FALSE; return TRUE; } -- 2.7.4