mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 17:06:19 +00:00
winegstreamer: Check whether the reader is still running before user time.
This commit is contained in:
parent
63f9aaea83
commit
0ae64636f6
|
@ -115,7 +115,7 @@ static void callback_thread_run(struct async_reader *reader)
|
|||
EnterCriticalSection(&reader->callback_cs);
|
||||
}
|
||||
|
||||
while (pts > reader->user_time && reader->running && list_empty(&reader->async_ops))
|
||||
while (reader->running && list_empty(&reader->async_ops) && pts > reader->user_time)
|
||||
SleepConditionVariableCS(&reader->callback_cv, &reader->callback_cs, INFINITE);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue