From 3ab85b91916e0f6029893154682a8a171244c428 Mon Sep 17 00:00:00 2001 From: henry Date: Tue, 22 Oct 2002 07:29:09 +0000 Subject: [PATCH] add a forgotten shutdown test git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7835 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/tvi_v4l.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmpdemux/tvi_v4l.c b/libmpdemux/tvi_v4l.c index 0c31c97c97..22d801f6a3 100644 --- a/libmpdemux/tvi_v4l.c +++ b/libmpdemux/tvi_v4l.c @@ -1190,6 +1190,9 @@ static void *video_grabber(void *data) if (priv->immediate_mode) { while ((priv->video_tail+1) % priv->video_buffer_size == priv->video_head) { usleep(10000); + if (priv->shutdown) { + return NULL; + } } }