aacparse: Also only unref caps if they're not NULL

This commit is contained in:
Sebastian Dröge 2014-12-10 11:35:29 +01:00
parent 6d6c6aac13
commit f5d26af3c9

View file

@ -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);