mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
playsinkconvertbin: Fix leak of the downstream caps filter
This commit is contained in:
parent
db8d53bc17
commit
b86267b5be
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue