From 06fe855aed164d31d8c971f74a6fb1969c6d27e4 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Sun, 14 Apr 2024 12:25:02 +0200 Subject: [PATCH] video vctrl.value is not reset to 0 when the video starts from begining. --- videodev-dumpfile.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/videodev-dumpfile.cc b/videodev-dumpfile.cc index 8243037..f56f842 100644 --- a/videodev-dumpfile.cc +++ b/videodev-dumpfile.cc @@ -300,6 +300,9 @@ int VideoDev_Dumpfile::ReadFrame() { // check position, if end of file restart from beginning if (filepos == filesize) { printf ("%s:%d end of file start with first frame\n", __FILE__, __LINE__); + std::list::iterator ctrl; + ctrl = vidctrls.begin(); + ctrl->value = 0; if (lseek(fd, 12, SEEK_SET) != 12) { printf ("%s:%d %s lseek returned: %s\n", __FILE__, __LINE__, __FUNCTION__, strerror(errno)); Close();