A question about changing elements in a pipeline
Hi, I am a green hand about gstreamer and I have a question when I changing some elements in the running pipeline:
https://gstreamer.freedesktop.org/documentation/application-development/advanced/pipeline-manipulation.html?gi-language=python The above tutorial shows me that to change a element in the pipeline, I should send EOS to the sink pad and wait for the EOS event to appear on the source pad. But how could I change the final element without source pad in the pipeline? such as replacing the filesink to fakesink to stop the recording and save all data into file in my program. Are there any way is a recommended?
By the way, After changing the element successfully, is it necessary to remove all idle elements from the bin using gst_bin_remove just like in the tutorial? I tried to do not it and usually find some strange problem.
I am looking for your reply.
Kind Regards, Yuhao