On Tue, Jun 30, 2009 at 3:19 AM, florian iragne <florian.iragne@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 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@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)