mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
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:
parent
80b1e53ccc
commit
daecc5bfa1
1 changed files with 4 additions and 1 deletions
|
@ -1486,13 +1486,16 @@ gst_vaapipostproc_fixate_caps (GstBaseTransform * trans,
|
||||||
|
|
||||||
outcaps = gst_vaapipostproc_fixate_srccaps (postproc, caps, othercaps);
|
outcaps = gst_vaapipostproc_fixate_srccaps (postproc, caps, othercaps);
|
||||||
g_mutex_unlock (&postproc->postproc_lock);
|
g_mutex_unlock (&postproc->postproc_lock);
|
||||||
|
if (!outcaps)
|
||||||
|
goto done;
|
||||||
|
|
||||||
/* set passthrough according to caps changes or filter changes */
|
/* set passthrough according to caps changes or filter changes */
|
||||||
same_caps = gst_caps_is_equal (caps, outcaps);
|
same_caps = gst_caps_is_equal (caps, outcaps);
|
||||||
gst_base_transform_set_passthrough (trans, same_caps && !filter_updated);
|
gst_base_transform_set_passthrough (trans, same_caps && !filter_updated);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
GST_DEBUG_OBJECT (trans, "fixated othercaps to %" GST_PTR_FORMAT, outcaps);
|
if (outcaps)
|
||||||
|
GST_DEBUG_OBJECT (trans, "fixated othercaps to %" GST_PTR_FORMAT, outcaps);
|
||||||
gst_caps_unref (othercaps);
|
gst_caps_unref (othercaps);
|
||||||
|
|
||||||
return outcaps;
|
return outcaps;
|
||||||
|
|
Loading…
Reference in a new issue