OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86748db
)
dont needlessly gettimeofday in video grabber patch by (Lennert Buytenhek <buytenh...
author
Lennert Buytenhek
<buytenh@math.leidenuniv.nl>
Sun, 1 Sep 2002 11:13:02 +0000
(11:13 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 1 Sep 2002 11:13:02 +0000
(11:13 +0000)
Originally committed as revision 893 to svn://svn.ffmpeg.org/ffmpeg/trunk
libav/grab.c
patch
|
blob
|
history
diff --git
a/libav/grab.c
b/libav/grab.c
index
0f9312c
..
4ad4e95
100644
(file)
--- 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));