1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 18:03:44 +01:00

Unref bus in SongLoader::LoadRemote()

This commit is contained in:
Jonas Kvinge 2021-07-11 04:58:37 +02:00
parent 9b9a32b053
commit c33f2a1d27

View File

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