qcap: Cast-qual warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Nov 11 05:02:18 CST 2006
Changelog:
qcap: Cast-qual warnings fix.
diff -urN a/dlls/qcap/pin.c b/dlls/qcap/pin.c
--- a/dlls/qcap/pin.c 2006-10-09 12:09:45.000000000 +0100
+++ b/dlls/qcap/pin.c 2006-11-11 10:48:05.000000000 +0000
@@ -357,7 +357,7 @@
return hr;
}
-HRESULT OutputPin_GetDeliveryBuffer(OutputPin * This, IMediaSample ** ppSample, const REFERENCE_TIME * tStart, const REFERENCE_TIME * tStop, DWORD dwFlags)
+HRESULT OutputPin_GetDeliveryBuffer(OutputPin * This, IMediaSample ** ppSample, REFERENCE_TIME * tStart, REFERENCE_TIME * tStop, DWORD dwFlags)
{
HRESULT hr;
@@ -374,10 +374,10 @@
hr = IMemInputPin_GetAllocator(This->pMemInputPin, &pAlloc);
if (SUCCEEDED(hr))
- hr = IMemAllocator_GetBuffer(pAlloc, ppSample, (REFERENCE_TIME *)tStart, (REFERENCE_TIME *)tStop, dwFlags);
+ hr = IMemAllocator_GetBuffer(pAlloc, ppSample, tStart, tStop, dwFlags);
if (SUCCEEDED(hr))
- hr = IMediaSample_SetTime(*ppSample, (REFERENCE_TIME *)tStart, (REFERENCE_TIME *)tStop);
+ hr = IMediaSample_SetTime(*ppSample, tStart, tStop);
if (pAlloc)
IMemAllocator_Release(pAlloc);
diff -urN a/dlls/qcap/pin.h b/dlls/qcap/pin.h
--- a/dlls/qcap/pin.h 2006-05-23 13:48:28.000000000 +0100
+++ b/dlls/qcap/pin.h 2006-11-11 10:43:52.000000000 +0000
@@ -76,5 +76,5 @@
HRESULT WINAPI OutputPin_Disconnect(IPin * iface);
HRESULT WINAPI OutputPin_ReceiveConnection(IPin * iface, IPin * pReceivePin, const AM_MEDIA_TYPE * pmt);
-HRESULT OutputPin_GetDeliveryBuffer(OutputPin * This, IMediaSample ** ppSample, const REFERENCE_TIME * tStart, const REFERENCE_TIME * tStop, DWORD dwFlags);
+HRESULT OutputPin_GetDeliveryBuffer(OutputPin * This, IMediaSample ** ppSample, REFERENCE_TIME * tStart, REFERENCE_TIME * tStop, DWORD dwFlags);
HRESULT OutputPin_SendSample(OutputPin * This, IMediaSample * pSample);
More information about the wine-patches
mailing list