mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
basetransform: Do not check if NULL is an emtpy caps
gst_base_transform_transform_caps can return NULL in various conditions thus we should not treat its result as valid caps. In all other places NULL is properly handled.
This commit is contained in:
parent
787a9f546b
commit
07af74b946
1 changed files with 1 additions and 1 deletions
|
@ -643,7 +643,7 @@ gst_base_transform_query_caps (GstBaseTransform * trans, GstPad * pad,
|
|||
GST_DEBUG_OBJECT (pad, "transformed %" GST_PTR_FORMAT, peerfilter);
|
||||
gst_caps_unref (temp);
|
||||
|
||||
if (!gst_caps_is_empty (peerfilter)) {
|
||||
if (peerfilter && !gst_caps_is_empty (peerfilter)) {
|
||||
/* and filter against the template of the other pad */
|
||||
GST_DEBUG_OBJECT (pad, "our template %" GST_PTR_FORMAT, otempl);
|
||||
/* We keep the caps sorted like the returned caps */
|
||||
|
|
Loading…
Reference in a new issue