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();