aacparse: Also only unref caps if they're not NULL
This commit is contained in:
parent
6d6c6aac13
commit
f5d26af3c9
@ -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…
x
Reference in New Issue
Block a user