audioconvert: plug caps leak

This commit is contained in:
Mark Nauwelaerts 2012-03-30 16:56:40 +02:00
parent 27408ee47f
commit aaf84a941e

View file

@ -597,6 +597,8 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base,
result = gst_caps_intersect (othercaps, caps);
if (gst_caps_is_empty (result)) {
if (result)
gst_caps_unref (result);
result = othercaps;
} else {
gst_caps_unref (othercaps);