From c33f2a1d270451168bec9bae0627e89e4eed9cf9 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 11 Jul 2021 04:58:37 +0200 Subject: [PATCH] Unref bus in SongLoader::LoadRemote() --- src/core/songloader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/songloader.cpp b/src/core/songloader.cpp index 4f4cf414..48d8eb4f 100644 --- a/src/core/songloader.cpp +++ b/src/core/songloader.cpp @@ -480,6 +480,7 @@ SongLoader::Result SongLoader::LoadRemote() { CHECKED_GCONNECT(typefind, "have-type", &TypeFound, this); gst_bus_set_sync_handler(bus, BusCallbackSync, this, nullptr); 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");