From 598e660aeba12cee5b11602bd9a0621f26e793a5 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 13 Jul 2021 23:37:29 +0200 Subject: [PATCH] Unref bus in SongLoader::LoadRemote() See: https://developer.gnome.org/gstreamer/stable/GstPipeline.html#gst-pipeline-get-bus --- src/core/songloader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/songloader.cpp b/src/core/songloader.cpp index 4c8677601..09d3db448 100644 --- a/src/core/songloader.cpp +++ b/src/core/songloader.cpp @@ -421,6 +421,7 @@ SongLoader::Result SongLoader::LoadRemote() { CHECKED_GCONNECT(typefind, "have-type", &TypeFound, this); gst_bus_set_sync_handler(bus, BusCallbackSync, this, NULL); gst_bus_add_watch(bus, BusCallback, this); + gst_object_unref(bus); // Add a probe to the sink so we can capture the data if it's a playlist GstPad* pad = gst_element_get_static_pad(fakesink, "sink");