mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
playsinkconvertbin: fix caps leak
Let go the reference to the converter caps after using it
This commit is contained in:
parent
aa9fb3bc6f
commit
693f3f9ce2
1 changed files with 1 additions and 0 deletions
|
@ -418,6 +418,7 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad, GstCaps * filter)
|
||||||
gst_caps_merge_structure_full (ret, gst_structure_copy (s),
|
gst_caps_merge_structure_full (ret, gst_structure_copy (s),
|
||||||
(cf ? gst_caps_features_copy (cf) : NULL));
|
(cf ? gst_caps_features_copy (cf) : NULL));
|
||||||
}
|
}
|
||||||
|
gst_caps_unref (converter_caps);
|
||||||
} else {
|
} else {
|
||||||
ret = peer_caps;
|
ret = peer_caps;
|
||||||
GST_PLAY_SINK_CONVERT_BIN_FILTER_CAPS (filter, ret);
|
GST_PLAY_SINK_CONVERT_BIN_FILTER_CAPS (filter, ret);
|
||||||
|
|
Loading…
Reference in a new issue