[gst-devel] Adder element and pipeline rebuilding

sudarshan bisht bisht.sudarshan at gmail.com
Fri Jan 2 10:52:00 CET 2009


Hi ,,
        Add the tsine element before  ,  link it in later in
GST_STATE_PAUSED  state.

On Fri, Jan 2, 2009 at 3:16 PM, marco <marco at teknusi.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Il giorno 02/gen/09, alle ore 10:33, sudarshan bisht ha scritto:
>
> > HI ,
> >         First set your pipeline to GST_STATE_PAUSED state then add
> > the new element and then again set pipeline to GST_STATE_PLAYING
> > state.
>
> thanks for your fast answer.
> it seems it does not work, it stalls or it gives errors in the flow.
> the following is the code i am executing:
>
> void add_sine(){
>         GstElement *tsine;
>
>         tsine = get_silence_bin();
>         gst_element_set_state(pipeline, GST_STATE_PAUSED);
>
>         gst_bin_add(GST_BIN(pipeline), tsine);
>
>
>         gst_pad_link(gst_element_get_static_pad(tsine, "src"),
>                 gst_element_get_request_pad(adder, "sink1"));
>
>         gst_element_set_state(pipeline, GST_STATE_PLAYING);
> }
>
> this brings to a flow error. if i add a :
> gst_element_set_state(tsine, GST_STATE_PAUSED);
> before adding it to the pipeline, it simply stalls (i never get an
> async-done from the pipeline, that should be the message posted to the
> bus when the pipeline is in playing state again.
> just for your information: this pipeline has a tee element outputting
> to two different sink elements (alsasink and shout2send);
> any hint on how to get this working?
>
> marco
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Darwin)
>
> iEYEARECAAYFAkld4nEACgkQ5A1A6ak/SoXO2QCgolmRiZRm8GSEeRnQalLBOrFT
> lDgAnRL5iT7LTYkYFfAl7IBOGe2uji3G
> =mkNJ
>  -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090102/fd266c64/attachment.htm>


More information about the gstreamer-devel mailing list