From 385892dd32050c6c27760c0fdeb4748590f49c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 5 Mar 2020 14:18:32 +0100 Subject: [PATCH] vaapidecode: don't set base sink caps twice Base class's sink pad caps are already set when calling set_format(). There's no need to call it again in gst_vaapidecode_negotiate(). --- gst/vaapi/gstvaapidecode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 915cbab5ac..d5db810793 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -471,8 +471,6 @@ gst_vaapidecode_negotiate (GstVaapiDecode * decode) GST_DEBUG_OBJECT (decode, "input codec state changed: renegotiating"); GST_VIDEO_DECODER_STREAM_LOCK (vdec); - if (!gst_vaapi_plugin_base_set_caps (plugin, decode->sinkpad_caps, NULL)) - goto caps_negotiation_failed; if (!gst_vaapidecode_update_src_caps (decode)) goto caps_negotiation_failed; if (!gst_vaapi_plugin_base_set_caps (plugin, NULL, decode->srcpad_caps))