From 922389a6087ea9da4efe1cebeeb5e7859dad01f6 Mon Sep 17 00:00:00 2001 From: V <13799022+vineet131@users.noreply.github.com> Date: Fri, 24 Nov 2023 18:43:16 +0900 Subject: [PATCH] Fix for #243 --- sound_play/scripts/soundplay_node.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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()