gst-python message handling

Thomas Werner momaslk at googlemail.com
Mon Apr 18 08:09:58 PDT 2011


Hi,

running several applications wit gst-python I recently run into an obviously
changed message handling behavior. Usually I do the following:

bus = self.player.get_bus()
bus.add_signal_watch()
bus.enable_sync_message_emission()
bus.connect("message", self.on_message)

...

within the message handler I'm checking against the message type like:

def on_message(self, bus, message)
        msg_type = message.type
        if msg_type == gst.MESSAGE_EOS:
           ...

For whatever reason this does not work any more.

Directly connecting the specific message properties like:

bus.connect"message::eos", self.on_eos)

works perfectly well.

Any idea where this behavior may come from and how to get back to the
previous approach.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110418/64662831/attachment.htm>


More information about the gstreamer-devel mailing list