summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-03-05 14:18:32 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-03-05 14:18:32 +0100
commit385892dd32050c6c27760c0fdeb4748590f49c36 (patch)
treec71ddad083925ed09f3a9095f395b74734fe5091 /gst
parent6e65356017d4f7fda37810daedf8f28b44943efb (diff)
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().
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapidecode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index 915cbab5..d5db8107 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))