diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index 6ed11133..91800cf7 100644 --- a/v4l2/grabvidseq.c +++ b/v4l2/grabvidseq.c @@ -97,7 +97,9 @@ while ((opt = getopt(argc, argv, "d:hn:O:p:v")) != -1) { } } - +if (verbosity) { + fprintf(stderr, "running %s pid=%d\n", argv[0], getpid()); + } fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0); if (fd < 0) { @@ -149,6 +151,7 @@ for (n_buffers = 0; n_buffers < req.count; ++n_buffers) { } t_debut = fimg_timer_set(0); + for (i = 0; i < n_buffers; ++i) { CLEAR(buf); buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;