Fix closing event in MOCORD mode

Bug introduced in 707975e567
This commit is contained in:
Peter Keresztes Schmidt 2021-07-10 00:54:15 +02:00
parent 9cb19005e5
commit 4392198d14
1 changed files with 1 additions and 1 deletions

View File

@ -1929,7 +1929,7 @@ bool Monitor::Analyse() {
if (section_length != Seconds(0) && (timestamp - GetVideoWriterStartTime() >= section_length)
&& ((function == MOCORD && event_close_mode != CLOSE_TIME)
|| (function == RECORD && event_close_mode == CLOSE_TIME)
|| timestamp.time_since_epoch() % section_length == Seconds(0))) {
|| std::chrono::duration_cast<Seconds>(timestamp.time_since_epoch()) % section_length == Seconds(0))) {
Info("%s: %03d - Closing event %" PRIu64 ", section end forced %" PRIi64 " - %" PRIi64 " = %" PRIi64 " >= %" PRIi64 ,
name.c_str(),
image_count,