Reputation: 75
Refer to http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html, I tried to change udpsrc on gstreamer pipeline. But something was wrong, state of the pipeline cannot be changed to PLAYING after change udp source.
Below is sequence of changing udpsrc. The original pipeline bin consist of...
udpsrc - queue - tsdemux - queue - parser - videodecoder - queue videosink
Is there any mistake in this sequence? Thanks in advance.
Upvotes: 4
Views: 2885
Reputation: 225
You don't need to send an EOS through the pipeline in this case. That has the effect of signalling the end of a stream and while it can be recovered from in most cases, for this case it is not needed.
The scenario for sending an EOS through elements when changing the pipeline dynamically is for elements with both sink and src pads in order to drain any data that may be stuck inside.
Upvotes: 0