mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
basetransform: Compare correct caps variable against NULL before comparing caps
This commit is contained in:
parent
a88a480a9b
commit
21321ce674
1 changed files with 1 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ gst_base_transform_setcaps (GstBaseTransform * trans, GstPad * pad,
|
||||||
if (!(ret = gst_base_transform_configure_caps (trans, incaps, outcaps)))
|
if (!(ret = gst_base_transform_configure_caps (trans, incaps, outcaps)))
|
||||||
goto failed_configure;
|
goto failed_configure;
|
||||||
|
|
||||||
if (!prev_incaps || !gst_caps_is_equal (outcaps, prev_outcaps))
|
if (!prev_outcaps || !gst_caps_is_equal (outcaps, prev_outcaps))
|
||||||
/* let downstream know about our caps */
|
/* let downstream know about our caps */
|
||||||
ret = gst_pad_set_caps (trans->srcpad, outcaps);
|
ret = gst_pad_set_caps (trans->srcpad, outcaps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue