playsinkconvertbin: Fix leak of the downstream caps filter

This commit is contained in:
Sebastian Dröge 2013-05-28 11:36:58 +02:00
parent db8d53bc17
commit b86267b5be

View file

@ -413,6 +413,8 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad, GstCaps * filter)
} }
peer_caps = gst_pad_query_caps (peer, downstream_filter); peer_caps = gst_pad_query_caps (peer, downstream_filter);
if (downstream_filter)
gst_caps_unref (downstream_filter);
gst_object_unref (peer); gst_object_unref (peer);
if (self->converter_caps && is_raw_caps (peer_caps, self->audio)) { if (self->converter_caps && is_raw_caps (peer_caps, self->audio)) {
ret = gst_caps_merge (peer_caps, gst_caps_ref (self->converter_caps)); ret = gst_caps_merge (peer_caps, gst_caps_ref (self->converter_caps));