Appsrc doesn't start after restarting pipeline
alex varming
alex at veo.co
Tue Jun 25 22:14:46 UTC 2019
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/
More information about the gstreamer-devel
mailing list