Hi,<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 7:41 AM, akaChella <span dir="ltr">&lt;<a href="mailto:durgas1987@gmail.com">durgas1987@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I have 2 pipelines. One is to play the video file locally and the other is<br>
to play the video and stream the audio.<br>
<br>
I am constructing one of the pipeline at a time and is working fine.<br>
<br>
Now i want to destroy the pipeline whatever has been constructed previously<br>
(say pipeline 1) and want to create the other pipeline (pipeline 2) during<br>
run time.<br>
<br>
I have used gst_deinit() to destroy the pipeline.<br></blockquote><div><br>You should not call gst_deinit to destroy the pipeline, to destroy the pipeline call:<br><br>gst_element_set_state (pipeline, GST_STATE_NULL);<br>
<br>and then <br><br>g_object_unref (pipeline);<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
and then initialised the gstreamer using gst_init() and later constructed<br>
the other pipeline.<br></blockquote><div><br>No need to call gst_init more than once.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
But everytime it says, it is unable to construct the source element. i.e,<br>
gst_element_factory_make () returns -1.<br>
<br>
Any idea on this issue??? </blockquote><div><br>Best regards,<br>Katcipis<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#888888">
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-destruct-a-pipeline-tp3921391p3921391.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-to-destruct-a-pipeline-tp3921391p3921391.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></blockquote></div><br>