AW: Appsrc doesn't start after restarting pipeline

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

AW: Appsrc doesn't start after restarting pipeline

BGraaf
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:[hidden email]]
Im Auftrag von alex varming
Gesendet: Mittwoch, 26. Juni 2019 00:15
An: [hidden email]
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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel