From 82e12a933e5a10443e30ee044b28f439480065bc Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Thu, 19 Feb 2015 13:37:09 +0200 Subject: [PATCH] vaapidecode: Caps query should return the list of all supported caps. Query caps filtering should be always done on top of allowed caps instead of existing fixed caps on a particular pad. This fixes the mvc stream decoding when there is a base view(high profile) and non-base view(stereo-high profile). --- gst/vaapi/gstvaapidecode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index e48fdba86e..02745030c5 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -993,10 +993,7 @@ gst_vaapidecode_query(GST_PAD_QUERY_FUNCTION_ARGS) GstCaps *filter, *caps = NULL; gst_query_parse_caps(query, &filter); - if (!decode->sinkpad_caps) - caps = gst_vaapidecode_get_caps(pad); - else - caps = gst_caps_ref(decode->sinkpad_caps); + caps = gst_vaapidecode_get_caps(pad); if (filter) { GstCaps *tmp = caps; @@ -1027,10 +1024,7 @@ gst_vaapidecode_query(GST_PAD_QUERY_FUNCTION_ARGS) GstCaps *filter, *caps = NULL; gst_query_parse_caps(query, &filter); - if (!decode->srcpad_caps) - caps = gst_pad_get_pad_template_caps(pad); - else - caps = gst_caps_ref(decode->srcpad_caps); + caps = gst_pad_get_pad_template_caps(pad); if (filter) { GstCaps *tmp = caps; -- 2.34.1