quartz/filesource: Remove some incorrect assertions.

There's no point checking the sample's time again. Moreover, short reads are
not an error.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-02-25 21:39:45 -06:00 committed by Alexandre Julliard
parent 3d24e7dea9
commit dbca5c5667
1 changed files with 0 additions and 10 deletions

View File

@ -1222,7 +1222,6 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
if (SUCCEEDED(hr))
{
REFERENCE_TIME rtStart, rtStop;
REFERENCE_TIME rtSampleStart, rtSampleStop;
DATAREQUEST *pDataRq = This->sample_list + buffer;
DWORD dwBytes = 0;
@ -1247,16 +1246,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
rtStart = MEDIATIME_FROM_BYTES(rtStart);
rtStop = rtStart + MEDIATIME_FROM_BYTES(dwBytes);
IMediaSample_GetTime(pDataRq->pSample, &rtSampleStart, &rtSampleStop);
assert(rtStart == rtSampleStart);
assert(rtStop <= rtSampleStop);
IMediaSample_SetTime(pDataRq->pSample, &rtStart, &rtStop);
assert(rtStart == rtSampleStart);
if (hr == S_OK)
assert(rtStop == rtSampleStop);
else
assert(rtStop == rtStart);
This->sample_list[buffer].pSample = NULL;
assert(This->oldest_sample < This->samples);