Revision cca1b241 libav/grab.c

View differences:

libav/grab.c
230 230
static int v4l_mm_read_picture(VideoData *s, UINT8 *buf)
231 231
{
232 232
    UINT8 *ptr;
233
    struct timeval tv_s;
234
    //struct timeval tv_e;
235
    //int delay;
236 233

  
237 234
    /* Setup to capture the next frame */
238 235
    gb_buf.frame = (gb_frame + 1) % gb_buffers.frames;
......
244 241
        return -EIO;
245 242
    }
246 243

  
247
    gettimeofday(&tv_s, 0);
248

  
249 244
    while (ioctl(s->fd, VIDIOCSYNC, &gb_frame) < 0 &&
250 245
           (errno == EAGAIN || errno == EINTR));
251 246

  

Also available in: Unified diff