mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
audioconvert: plug caps leak
This commit is contained in:
parent
27408ee47f
commit
aaf84a941e
1 changed files with 2 additions and 0 deletions
|
@ -597,6 +597,8 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base,
|
||||||
|
|
||||||
result = gst_caps_intersect (othercaps, caps);
|
result = gst_caps_intersect (othercaps, caps);
|
||||||
if (gst_caps_is_empty (result)) {
|
if (gst_caps_is_empty (result)) {
|
||||||
|
if (result)
|
||||||
|
gst_caps_unref (result);
|
||||||
result = othercaps;
|
result = othercaps;
|
||||||
} else {
|
} else {
|
||||||
gst_caps_unref (othercaps);
|
gst_caps_unref (othercaps);
|
||||||
|
|
Loading…
Reference in a new issue