Anybody know why I am getting "Illegal seek" on the VIDIOC_QUERYCAP ?

I opened the file with open() like this:

   g->gdev = open(VIDEODEV,O_RDWR);
   err = ioctl(g->gdev, VIDIOC_QUERYCAP, &g->cap);


where the g is a typedef struct:

typedef struct
{
   int gdev;
   struct v4l2_capability cap;
   struct v4l2_standard std;
   struct v4l2_format fmt;
   struct v4l2_requestbuffers req;
}grabber;

------
still ioctl 0 , meaning which all is fine with the QUERY, why the errno 
"Illegal seek" is reported ?

Tanks
Ivan.



_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to