diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index caf5306e..ac4c2bbe 100644 --- a/v4l2/grabvidseq.c +++ b/v4l2/grabvidseq.c @@ -49,6 +49,7 @@ do { if (r == -1) { fprintf(stderr, "error %d, %s\n", errno, strerror(errno)); + sleep(1); exit(EXIT_FAILURE); } } @@ -103,7 +104,7 @@ if (verbosity) { fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0); if (fd < 0) { - perror("Cannot open device"); + perror(dev_name); exit(EXIT_FAILURE); }