decoder: don't reply src caps query with allowed if pad is fixed
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 20 Sep 2020 07:56:40 +0000 (09:56 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 20 Sep 2020 08:02:16 +0000 (10:02 +0200)
commit27427c00c0c4f240ff0cce877eb52759292cd89c
tree791b3ff642ad34b4097066c5b5566028f613d97e
parent6305acc9d381a11f6fcc9a820db2db5235a13e19
decoder: don't reply src caps query with allowed if pad is fixed

If the pad is already fixed the caps query have to be reply with the
current fixed caps. Otherwise the query has to be replied with the
autogeneratd src caps.

This path fix this by falling back to the normal caps query processing
if the pad is already fixed. Otherwise it will fetch the allowed src
pad caps.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/397>
gst/vaapi/gstvaapidecode.c