displaying pid
This commit is contained in:
parent
51190aa1c4
commit
0e6d2f8ad7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user