GNOME Bugzilla – Bug 659193
Can't receive bus messages using PyGObject
Last modified: 2011-09-15 22:27:37 UTC
The message is always None! See also: http://stackoverflow.com/questions/7005058/gstreamer-bus-sends-none-message Here's some code to reproduce it quickly: from gi.repository import Gst def on_message(bus, message): print bus, message Gst.init(None) player = Gst.ElementFactory.make('playbin2', self.name) # add a src and sink to playbin bus = player.get_bus() bus.add_signal_watch() bus.connect('message', on_message)
0.10.32? You should probably be trying at least the latest release, if not git, if you're using gi. At first glance it looks like a bug in pygi, maybe it doesn't handle GstMiniObjects correctly: >>> loop.run() __main__:1: Warning: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT (value)' failed <Bus object at 0x7f4df5809d70 (GstBus at 0x24ca320)> None <Bus object at 0x7f4df5809d70 (GstBus at 0x24ca320)> None <Bus object at 0x7f4df5809d70 (GstBus at 0x24ca320)> None <Bus object at 0x7f4df5809d70 (GstBus at 0x24ca320)> None
Looks like a dup of #631901 to me. *** This bug has been marked as a duplicate of bug 631901 ***