msdkvpp: correct the fixated caps for src pad

In src pad, fixate othercaps instead of the NULL result caps

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3999>
This commit is contained in:
Yinhang Liu 2023-02-20 10:17:53 +08:00 committed by GStreamer Marge Bot
parent 8e77f89e86
commit 5c47002d99

View file

@ -1453,7 +1453,7 @@ gst_msdkvpp_fixate_caps (GstBaseTransform * trans,
gboolean *use_dmabuf;
if (direction == GST_PAD_SRC) {
result = gst_caps_fixate (result);
result = gst_caps_fixate (othercaps);
use_dmabuf = &thiz->use_sinkpad_dmabuf;
} else {
/*