accodrding to this documentation: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html "Controlled shutdown of live sources in applications" "Since GStreamer 0.10.16 an application may send an EOS event to a source element to make it perform the EOS logic".
So my branch make sure we send EOS before we stop recording.
accodrding to this documentation: gstreamer. freedesktop. org/data/ doc/gstreamer/ head/gstreamer- libs/html/ GstBaseSrc. html
http://
"Controlled shutdown of live sources in applications"
"Since GStreamer 0.10.16 an application may send an EOS event to a source element to make it perform the EOS logic".
So my branch make sure we send EOS before we stop recording.