mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-02 21:09:39 +01:00
Unref bus in SongLoader::LoadRemote()
See: https://developer.gnome.org/gstreamer/stable/GstPipeline.html#gst-pipeline-get-bus
This commit is contained in:
parent
4d34748401
commit
598e660aeb
@ -421,6 +421,7 @@ SongLoader::Result SongLoader::LoadRemote() {
|
|||||||
CHECKED_GCONNECT(typefind, "have-type", &TypeFound, this);
|
CHECKED_GCONNECT(typefind, "have-type", &TypeFound, this);
|
||||||
gst_bus_set_sync_handler(bus, BusCallbackSync, this, NULL);
|
gst_bus_set_sync_handler(bus, BusCallbackSync, this, NULL);
|
||||||
gst_bus_add_watch(bus, BusCallback, this);
|
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
|
// 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");
|
GstPad* pad = gst_element_get_static_pad(fakesink, "sink");
|
||||||
|
Loading…
Reference in New Issue
Block a user