<div>Hi ,, </div>
<div> Add the tsine element before , link it in later in GST_STATE_PAUSED state. <br><br></div>
<div class="gmail_quote">On Fri, Jan 2, 2009 at 3:16 PM, marco <span dir="ltr"><<a href="mailto:marco@teknusi.org">marco@teknusi.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br><br></div>Il giorno 02/gen/09, alle ore 10:33, sudarshan bisht ha scritto:<br>
<div class="Ih2E3d"><br>> HI ,<br>> First set your pipeline to GST_STATE_PAUSED state then add<br>> the new element and then again set pipeline to GST_STATE_PLAYING<br>> state.<br><br></div>thanks for your fast answer.<br>
it seems it does not work, it stalls or it gives errors in the flow.<br>the following is the code i am executing:<br><br>void add_sine(){<br> GstElement *tsine;<br><br> tsine = get_silence_bin();<br> gst_element_set_state(pipeline, GST_STATE_PAUSED);<br>
<br> gst_bin_add(GST_BIN(pipeline), tsine);<br><br><br> gst_pad_link(gst_element_get_static_pad(tsine, "src"),<br> gst_element_get_request_pad(adder, "sink1"));<br><br> gst_element_set_state(pipeline, GST_STATE_PLAYING);<br>
}<br><br>this brings to a flow error. if i add a :<br>gst_element_set_state(tsine, GST_STATE_PAUSED);<br>before adding it to the pipeline, it simply stalls (i never get an<br>async-done from the pipeline, that should be the message posted to the<br>
bus when the pipeline is in playing state again.<br>just for your information: this pipeline has a tee element outputting<br>to two different sink elements (alsasink and shout2send);<br>any hint on how to get this working?<br>
<div class="Ih2E3d"><br>marco<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.9 (Darwin)<br><br></div>iEYEARECAAYFAkld4nEACgkQ5A1A6ak/SoXO2QCgolmRiZRm8GSEeRnQalLBOrFT<br>lDgAnRL5iT7LTYkYFfAl7IBOGe2uji3G<br>=mkNJ<br>
<div>
<div></div>
<div class="Wj3C7c">-----END PGP SIGNATURE-----<br><br>------------------------------------------------------------------------------<br>_______________________________________________<br>gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>