quartz/filesource: Cancel I/O from all threads in IAsyncReader::BeginFlush().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5bb661abd3
commit
0523f75933
|
@ -1251,7 +1251,7 @@ static HRESULT WINAPI FileAsyncReader_BeginFlush(IAsyncReader * iface)
|
||||||
EnterCriticalSection(&filter->sample_cs);
|
EnterCriticalSection(&filter->sample_cs);
|
||||||
|
|
||||||
filter->flushing = TRUE;
|
filter->flushing = TRUE;
|
||||||
CancelIo(filter->file);
|
CancelIoEx(filter->file, NULL);
|
||||||
SetEvent(filter->handle_list[filter->samples]);
|
SetEvent(filter->handle_list[filter->samples]);
|
||||||
|
|
||||||
LeaveCriticalSection(&filter->sample_cs);
|
LeaveCriticalSection(&filter->sample_cs);
|
||||||
|
|
Loading…
Reference in New Issue