diff options
author | 2002-10-22 07:29:09 +0000 | |
---|---|---|
committer | 2002-10-22 07:29:09 +0000 | |
commit | 3ab85b91916e0f6029893154682a8a171244c428 (patch) | |
tree | 930d6a9a9c3c44b3197df3fd190eac97f57cb6d2 | |
parent | 8a1d698bc250654c2bb13343e2e04b301b7694a1 (diff) |
add a forgotten shutdown test
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7835 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/tvi_v4l.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; + } } } |