Zebediah Figura : quartz/filesource: Remove some incorrect assertions.
Alexandre Julliard
julliard at winehq.org
Tue Feb 26 15:13:56 CST 2019
Module: wine
Branch: master
Commit: dbca5c56671692c87497e25c71022671c282a238
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dbca5c56671692c87497e25c71022671c282a238
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Mon Feb 25 21:39:45 2019 -0600
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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/quartz/filesource.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index 9e36057..fc3e508 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -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);
More information about the wine-cvs
mailing list