Hi
I'm trying to port an v4l application to v4l2 but in first calls my
application crash with:
"Invalid argument" when i use :
if ( ioctl(grab_fd,VIDIOC_G_INPUT,&index) == -1)
{
perror("VIDIOC_G_INPUT error!!!");
exit (-1);
}
and in others calls i obtain the same. I think it must be because of
the device video0 is wrong (but i can open it without problems).
I've installed kernel 2.4.20 patched with patch-2.4.20-kraxel.gz
<http://bytesex.org/patches/2.4/patch-2.4.20-kraxel.gz> and bttv 0.9.9.
Using v4l2 is this right?:
dev]$ ll vide*
lr-xr-xr-x 1 root root 10 mar 27 10:01 video ->
v4l/video0
lr-xr-xr-x 1 root root 10 mar 27 10:01 video0 ->
v4l/video0
Thanks