[gst-devel] query from Maintainers, developers, anyone .. regarding eos signal in gst elements

Daniel Lenski dlenski at gmail.com
Thu Sep 27 18:31:32 CEST 2007


On 9/27/07, karmendra jain <karmendra.jain at gmail.com> wrote:
> Hi All
> I have encountered a strange problem
> in Gstreamer0.8 the elements emitted a signal "eos" (like the elements
> emit "pad-added" etc )
> but now in Gstreamer0.10 this seems to have been removed
>
> So can anyone plzzzzzzzz  tell me how to get a "eos" signal ??
>
> 'cas basically i wanna connect that signal to another object (g object
> ;. using g_signal_connect)
>
> plz pplz neonw tell me :(
>
> thanks

Do it like this (example in Python, C is almost the same):

bus = pipeline.get_bus()
bus.add_signal_watch()
bus.connect("message::eos", callback)

Basically, you need to do add_signal_watch to get your pipeline to
emit signals for individual gstreamer messages.

Dan




More information about the gstreamer-devel mailing list