aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-22 07:29:09 +0000
committerGravatar henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-22 07:29:09 +0000
commit3ab85b91916e0f6029893154682a8a171244c428 (patch)
tree930d6a9a9c3c44b3197df3fd190eac97f57cb6d2 /libmpdemux
parent8a1d698bc250654c2bb13343e2e04b301b7694a1 (diff)
add a forgotten shutdown test
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7835 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/tvi_v4l.c3
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;
+ }
}
}