Commit dbca5c56 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 3d24e7de
...@@ -1222,7 +1222,6 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw ...@@ -1222,7 +1222,6 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
REFERENCE_TIME rtStart, rtStop; REFERENCE_TIME rtStart, rtStop;
REFERENCE_TIME rtSampleStart, rtSampleStop;
DATAREQUEST *pDataRq = This->sample_list + buffer; DATAREQUEST *pDataRq = This->sample_list + buffer;
DWORD dwBytes = 0; DWORD dwBytes = 0;
...@@ -1247,16 +1246,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw ...@@ -1247,16 +1246,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
rtStart = MEDIATIME_FROM_BYTES(rtStart); rtStart = MEDIATIME_FROM_BYTES(rtStart);
rtStop = rtStart + MEDIATIME_FROM_BYTES(dwBytes); rtStop = rtStart + MEDIATIME_FROM_BYTES(dwBytes);
IMediaSample_GetTime(pDataRq->pSample, &rtSampleStart, &rtSampleStop);
assert(rtStart == rtSampleStart);
assert(rtStop <= rtSampleStop);
IMediaSample_SetTime(pDataRq->pSample, &rtStart, &rtStop); 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; This->sample_list[buffer].pSample = NULL;
assert(This->oldest_sample < This->samples); assert(This->oldest_sample < This->samples);
......
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