winegstreamer: Check whether the reader is still running before user time.

This commit is contained in:
Rémi Bernon 2022-09-09 00:33:05 +02:00 committed by Alexandre Julliard
parent 63f9aaea83
commit 0ae64636f6

View file

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