I want to stop the pipeline, remove the elements. Later, on command, I will
add the elements back in and restart the pipeline.
My plan is the following:
1. Send an EOS through the pipeline
2. Detect EOS on the filesink (probe_event)
3. Set all elements to NULL
4. Remove elements from pipeline.
*How do I send the EOS? *I've tried
In addition to sending gst_event_new_flush_start().
I can't simply set the pipeline to GST_STATE_NULL because the omxh264enc
prevents this (I've made a simplified pipeline with just
queue->videoconvert->faksink and this has no problem changing to
GST_STATE_NULL. How do I get the encoder and muxer to wrap it up and let me
stop/restart the pipeline?