mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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:
parent
7ca0591759
commit
82e12a933e
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue