The play branch and the record branch can work both well, and I save the
stream as several mp4 files. The problem is that the last mp4 file is
unplayable. I know this is because I need to send EOS down the pipeline.
When I close this software, I use
gst_element_send_event (m_pipeline, gst_event_new_eos());
however, the bus_call() can not receive EOS message, can anybody give me
some idea to send EOS event and close the pipeline in the valid way and make
the last mp4 file in the playable state ?