AW: Appsrc doesn't start after restarting pipeline

Bernhard Graaf bernhard.graaf at gmx.de
Wed Jun 26 14:27:54 UTC 2019


Hi Alex,

if you unref. the pipeline, you need to define the pipeline again.
Do you try to set the state to NULL only?

Regards
Bernhard

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org]
Im Auftrag von alex varming
Gesendet: Mittwoch, 26. Juni 2019 00:15
An: gstreamer-devel at lists.freedesktop.org
Betreff: Appsrc doesn't start after restarting pipeline

Hey 

I'm using the appsrc element to inject data into a mpegtsmux. The pipeline
is programmed in C. To test the program I use a fifo file, to start/stop the
pipeline. All is working fine the first time the program is started, but
when the pipeline is restarted, the appsrc doesn't seem to begin. Does
anyone know, what is the right way to restart the pipeline with an appsrc.
Does it need to be unreffed  in specific way?

Right now the pipeline is stopped using:

   gst_element_set_state(data.pipeline, GST_STATE_NULL);
   gst_object_unref(GST_OBJECT (data.pipeline));
   data.pipeline = NULL;

And started again:

gst_element_set_state(data.pipeline, GST_STATE_PLAYING)

Kind regards 

/Alex



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list