diff --git a/sound_play/scripts/soundplay_node.py b/sound_play/scripts/soundplay_node.py index 4e7eaf50..ed1f62cc 100755 --- a/sound_play/scripts/soundplay_node.py +++ b/sound_play/scripts/soundplay_node.py @@ -57,7 +57,7 @@ try: import gi gi.require_version('Gst', '1.0') - from gi.repository import GObject as GObject + from gi.repository import GLib as GLib from gi.repository import Gst as Gst except Exception: str = """ @@ -326,9 +326,8 @@ def execute_cb(self, data): def __init__(self): Gst.init(None) - # Start gobject thread to receive gstreamer messages - GObject.threads_init() - self.g_loop = threading.Thread(target=GObject.MainLoop().run) + # Start glib thread to receive gstreamer messages + self.g_loop = threading.Thread(target=GLib.MainLoop().run) self.g_loop.daemon = True self.g_loop.start()