diff options
author | Lennert Buytenhek <buytenh@math.leidenuniv.nl> | 2002-09-01 11:13:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-01 11:13:02 +0000 |
commit | cca1b2410ee740b328810091e7e3d1217674df07 (patch) | |
tree | 378bd0e3b5da770a385edd93d1e0eba9e93f364a | |
parent | 86748dbc61e08a97e70e8e1c821c899ac6f1beac (diff) | |
download | ffmpeg-cca1b2410ee740b328810091e7e3d1217674df07.tar.gz |
dont needlessly gettimeofday in video grabber patch by (Lennert Buytenhek <buytenh at math dot leidenuniv dot nl>)
Originally committed as revision 893 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libav/grab.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libav/grab.c b/libav/grab.c index 0f9312c586..4ad4e95ed3 100644 --- a/libav/grab.c +++ b/libav/grab.c @@ -230,9 +230,6 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) static int v4l_mm_read_picture(VideoData *s, UINT8 *buf) { UINT8 *ptr; - struct timeval tv_s; - //struct timeval tv_e; - //int delay; /* Setup to capture the next frame */ gb_buf.frame = (gb_frame + 1) % gb_buffers.frames; @@ -244,8 +241,6 @@ static int v4l_mm_read_picture(VideoData *s, UINT8 *buf) return -EIO; } - gettimeofday(&tv_s, 0); - while (ioctl(s->fd, VIDIOCSYNC, &gb_frame) < 0 && (errno == EAGAIN || errno == EINTR)); |