[gst-devel] Adder element and pipeline rebuilding
marco
marco at teknusi.org
Fri Jan 2 10:46:25 CET 2009
-----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-----
More information about the gstreamer-devel
mailing list