Illegal seek on VIDIOC_QUERYCAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux