mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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,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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue