[vlc-devel] commit: V4L2: msleep uses µs - not ms ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 7 13:04:29 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 7 14:05:29 2008 +0300| [28092982d6ddf47461484664e2ff3fe6eef46faa] | committer: Rémi Denis-Courmont
V4L2: msleep uses µs - not ms
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28092982d6ddf47461484664e2ff3fe6eef46faa
---
modules/access/v4l2/v4l2.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/access/v4l2/v4l2.c b/modules/access/v4l2/v4l2.c
index f773353..2cedf82 100644
--- a/modules/access/v4l2/v4l2.c
+++ b/modules/access/v4l2/v4l2.c
@@ -1371,7 +1371,9 @@ static int Demux( demux_t *p_demux )
{
/* Sleep so we do not consume all the cpu, 10ms seems
* like a good value (100fps) */
- msleep( 10 );
+ /* Yeah, nevermind this was sleeping 10 microseconds! This is
+ * completely brain damaged anyway. Use poll() or mwait() FIXME. */
+ msleep(10000);
return 1;
}
More information about the vlc-devel
mailing list