quartz: Return VFW_E_WRONG_STATE in file source if flushing.
This commit is contained in:
parent
c71ba1a141
commit
d458efe072
|
@ -1182,8 +1182,12 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
|
||||||
if (buffer >= This->samples)
|
if (buffer >= This->samples)
|
||||||
{
|
{
|
||||||
if (buffer != This->samples)
|
if (buffer != This->samples)
|
||||||
|
{
|
||||||
FIXME("Returned: %u (%08x)\n", buffer, GetLastError());
|
FIXME("Returned: %u (%08x)\n", buffer, GetLastError());
|
||||||
hr = VFW_E_TIMEOUT;
|
hr = VFW_E_TIMEOUT;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
hr = VFW_E_WRONG_STATE;
|
||||||
buffer = ~0;
|
buffer = ~0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue