summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/tvi_v4l2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c
index 49b680d112..8738088a0a 100644
--- a/stream/tvi_v4l2.c
+++ b/stream/tvi_v4l2.c
@@ -1590,7 +1590,7 @@ static void *video_grabber(void *data)
return NULL;
}
-#define MAX_LOOP 50
+#define MAX_LOOP 500
static double grab_video_frame(priv_t *priv, char *buffer, int len)
{
int loop_cnt = 0;
@@ -1601,7 +1601,7 @@ static double grab_video_frame(priv_t *priv, char *buffer, int len)
}
while (priv->video_cnt == 0) {
- usleep(10000);
+ usleep(1000);
if (loop_cnt++ > MAX_LOOP) return 0;
}