Commit 0ae64636 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

parent 63f9aaea
...@@ -115,7 +115,7 @@ static void callback_thread_run(struct async_reader *reader) ...@@ -115,7 +115,7 @@ static void callback_thread_run(struct async_reader *reader)
EnterCriticalSection(&reader->callback_cs); 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); SleepConditionVariableCS(&reader->callback_cv, &reader->callback_cs, INFINITE);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment