Unref bus in SongLoader::LoadRemote()

See: https://developer.gnome.org/gstreamer/stable/GstPipeline.html#gst-pipeline-get-bus
This commit is contained in:
Jonas Kvinge 2021-07-13 23:37:29 +02:00 committed by John Maguire
parent 4d34748401
commit 598e660aeb
1 changed files with 1 additions and 0 deletions

View File

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