After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659193 - Can't receive bus messages using PyGObject
Can't receive bus messages using PyGObject
Status: RESOLVED DUPLICATE of bug 631901
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.32
Other All
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-09-15 21:38 UTC by Tal Liron
Modified: 2011-09-15 22:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tal Liron 2011-09-15 21:38:34 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)
Comment 1 Tim-Philipp Müller 2011-09-15 22:25:58 UTC
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
Comment 2 Tim-Philipp Müller 2011-09-15 22:27:37 UTC
Looks like a dup of  #631901 to me.

*** This bug has been marked as a duplicate of bug 631901 ***