vaapipostproc: early return if fixate srcpad caps fails

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/371>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-04-08 19:41:09 +02:00 committed by GStreamer Merge Bot
parent 80b1e53ccc
commit daecc5bfa1

View file

@ -1486,12 +1486,15 @@ gst_vaapipostproc_fixate_caps (GstBaseTransform * trans,
outcaps = gst_vaapipostproc_fixate_srccaps (postproc, caps, othercaps);
g_mutex_unlock (&postproc->postproc_lock);
if (!outcaps)
goto done;
/* set passthrough according to caps changes or filter changes */
same_caps = gst_caps_is_equal (caps, outcaps);
gst_base_transform_set_passthrough (trans, same_caps && !filter_updated);
done:
if (outcaps)
GST_DEBUG_OBJECT (trans, "fixated othercaps to %" GST_PTR_FORMAT, outcaps);
gst_caps_unref (othercaps);