mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
aacparse: Also only unref caps if they're not NULL
This commit is contained in:
parent
6d6c6aac13
commit
f5d26af3c9
1 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,8 @@ gst_aac_parse_set_src_caps (GstAacParse * aacparse, GstCaps * sink_caps)
|
|||
}
|
||||
}
|
||||
}
|
||||
gst_caps_unref (allowed);
|
||||
if (allowed)
|
||||
gst_caps_unref (allowed);
|
||||
|
||||
GST_DEBUG_OBJECT (aacparse, "setting src caps: %" GST_PTR_FORMAT, src_caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue