aboutsummaryrefslogtreecommitdiffstats
path: root/grab-one.c
diff options
context:
space:
mode:
Diffstat (limited to 'grab-one.c')
-rw-r--r--grab-one.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grab-one.c b/grab-one.c
index 5d62e0b..422a0a9 100644
--- a/grab-one.c
+++ b/grab-one.c
@@ -262,7 +262,7 @@ main(int argc, char **argv)
perror("ioctl VIDIOCMCAPTURE");
exit(1);
}
- if (-1 == ioctl(fd,VIDIOCSYNC,0)) {
+ if (-1 == ioctl(fd,VIDIOCSYNC,&gb.frame)) {
perror("ioctl VIDIOCSYNC");
exit(1);
}

Privacy Policy