From e007710b591f924b84bcc03f114728ba110a1925 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 29 Mar 2019 12:42:45 +0900 Subject: [PATCH] gluploadelement: Fix caps leak gst_event_new_caps() does not take ownership of the caps Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/885 --- ext/gl/gstgluploadelement.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/gl/gstgluploadelement.c b/ext/gl/gstgluploadelement.c index 30af7d0..aec9c6c 100644 --- a/ext/gl/gstgluploadelement.c +++ b/ext/gl/gstgluploadelement.c @@ -249,6 +249,7 @@ again: * Reconfiguring must be synchronous to avoid dropping the current * buffer */ gst_pad_send_event (sinkpad, gst_event_new_caps (incaps)); + gst_caps_unref (incaps); if (!gst_pad_needs_reconfigure (GST_BASE_TRANSFORM_SRC_PAD (bt))) { GST_DEBUG_OBJECT (bt, "Retry uploading with new caps"); goto again; -- 2.7.4