On Mon, 2002-02-04 at 00:21, zen Genius wrote:
> I think the expected argument is 1 or 0 instead of address for integer b.
> try
> ioctl(fd, VIDIOCCAPTURE, b);
> ioctl(fd, VIDIOCCAPTURE, 1)
No, v4l ioctl()s always take pointers.
> >if (-1 == ioctl(fd, VIDIOCCAPTURE, (int *)&b))
> > { perror("capture"); close(fd); exit(1);}
> >
> >is called i get:
> >
> >"capture: Invalid argument"
> >
> >but if i run "xawtv" first, i do not get the error, so i obviously not
> >setting something right.
Set the video window and/or set the framebuffer address (VIDIOCSFBUF or
VIDIOCSWIN). xawtv does this too, so once xawtv's done this, you don't
need to do it anymore.
Ronald
--
- .-.
- /V\ | Ronald Bultje <[EMAIL PROTECTED]>
- // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0
- /( )\ | http://ronald.bitfreak.net/
- ^^-^^
_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list