From 0e6d2f8ad7dd1895c5cc5645d85d1d3eb242ac22 Mon Sep 17 00:00:00 2001 From: tth Date: Tue, 2 Jul 2019 07:07:38 +0200 Subject: [PATCH] displaying pid --- v4l2/grabvidseq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index 6ed1113..91800cf 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;