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).
This commit is contained in:
Sreerenj Balachandran 2015-02-19 13:37:09 +02:00
parent 7ca0591759
commit 82e12a933e

View file

@ -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;