mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 10:55:43 +00:00
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:
parent
8a1d698bc2
commit
3ab85b9191
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user