From: sudarshan b. <bis...@gm...> - 2009-01-02 09:52:06
|
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 <ma...@te...> 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 > gst...@li... > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > -- Regards, Sudarshan Bisht |