Detecting EOF recording and unexpected termination

This commit is contained in:
Bruno
2021-08-06 21:23:01 +02:00
parent e9b7e55570
commit fb3e1d0d25
5 changed files with 41 additions and 73 deletions

View File

@@ -389,6 +389,8 @@ void VideoStreamer::init(GstCaps *caps)
void VideoStreamer::terminate()
{
active_ = false;
// send EOS
gst_app_src_end_of_stream (src_);
@@ -414,6 +416,7 @@ void VideoStreamer::stop ()
// force finished
finished_ = true;
active_ = false;
}
std::string VideoStreamer::info() const