gstreamer-plugins-base/gst-base-audioencoder-fix-leak.patch

26 lines
879 B
Diff
Raw Normal View History

From c61767dc2f7f99e3de93aee09695a6a06202f619 Mon Sep 17 00:00:00 2001
From: Jonas Holmberg <jonashg@axis.com>
Date: Fri, 20 Dec 2019 13:35:53 +0100
Subject: [PATCH] audioencoder: fix segment event leak
Segment event was leaked if format != _TIME.
---
gst-libs/gst/audio/gstaudioencoder.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c
index c2f0382ae..031a40b7f 100644
--- a/gst-libs/gst/audio/gstaudioencoder.c
+++ b/gst-libs/gst/audio/gstaudioencoder.c
@@ -1551,6 +1551,7 @@ gst_audio_encoder_sink_event_default (GstAudioEncoder * enc, GstEvent * event)
GST_DEBUG_OBJECT (enc, "received SEGMENT %" GST_SEGMENT_FORMAT, &seg);
GST_DEBUG_OBJECT (enc, "unsupported format; ignoring");
res = TRUE;
+ gst_event_unref (event);
break;
}
--
2.24.1