video vctrl.value is not reset to 0 when the video starts from begining.

master
Steffen Pohle 1 year ago
parent 2fb85a0f5d
commit 06fe855aed

@ -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<VideoDevCtrl>::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();

Loading…
Cancel
Save