[gst-devel] EOS : which element should receive this signal?

thiagoss thiagossantos at gmail.com
Tue Jun 30 16:47:01 CEST 2009


On Tue, Jun 30, 2009 at 3:19 AM, florian iragne <florian.iragne at viewsurf.com
> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> thiagoss a écrit :
> >> Sending to the pipeline should work, you can use: gst_element_send_event
> >> (pipeline, gst_event_new_eos()),
>
> with your command, it works :
> gst_element_send_event (&*busIt->second, gst_event_new_eos());
>
> previously, i was doing : gst_bus_post( &*busIt->first,
> gst_message_new_eos( ( GstObject* ) &*busIt->second ) );
>
> busIt->first is a GstBus and ->second is a pipeline (GstElement).
>
> Is there any obvious reason i don't see to explain that it didn't work
> with my way?


Yes, if you look at the GstBus documentation we have "The
GstBus<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBus.html>is
an object responsible for delivering
GstMessages in a first-in first-out way from the streaming threads to the
application.".

GstBus is used for delivering messages from the pipeline/elements to your
application, posting a message to the bus doesn't make the elements receive,
An EOS message is posted at the bus by an element to inform the application
that an EOS event has happened at the pipeline.

For sending/forcing EOS to the pipeline, you send an GstEvent to it. Take a
look at the following links for further details.

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBus.html
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstEvent.html


>
>
>
> Anyway, thanks for your help!
>
> cheers
>
> Florian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkpJrm8ACgkQO8DE9K7b370fuACgzWiZ52rLFzMNyIs2rBRF5toq
> xz4AoKtHp04P60E1Ka1BZ0P+jRzdukex
> =01wd
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090630/891a69d0/attachment.htm>


More information about the gstreamer-devel mailing list