gst-python message handling

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gst-python message handling

Thomas Werner
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




_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel