add a forgotten shutdown test

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7835 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2002-10-22 07:29:09 +00:00
parent 8a1d698bc2
commit 3ab85b9191
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}
}