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
This commit is contained in:
Seungha Yang 2019-03-29 12:42:45 +09:00
parent a6afa88812
commit e007710b59

View file

@ -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;