How to destruct a pipeline??

Tiago Katcipis katcipis at inf.ufsc.br
Thu Oct 20 18:02:31 PDT 2011


Hi,

On Thu, Oct 20, 2011 at 7:41 AM, akaChella <durgas1987 at gmail.com> wrote:

> Hi all,
>
> I have 2 pipelines. One is to play the video file locally and the other is
> to play the video and stream the audio.
>
> I am constructing one of the pipeline at a time and is working fine.
>
> Now i want to destroy the pipeline whatever has been constructed previously
> (say pipeline 1) and want to create the other pipeline (pipeline 2) during
> run time.
>
> I have used gst_deinit() to destroy the pipeline.
>

You should not call gst_deinit to destroy the pipeline, to destroy the
pipeline call:

gst_element_set_state (pipeline, GST_STATE_NULL);

and then

g_object_unref (pipeline);


>
> and then initialised the gstreamer using gst_init() and later constructed
> the other pipeline.
>

No need to call gst_init more than once.


>
> But everytime it says, it is unable to construct the source element. i.e,
> gst_element_factory_make () returns -1.
>
> Any idea on this issue???


Best regards,
Katcipis


>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/How-to-destruct-a-pipeline-tp3921391p3921391.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111020/dd9c1cd4/attachment.htm>


More information about the gstreamer-devel mailing list