quartz: Cast-qual warnings fix (1 of 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Nov 11 05:03:30 CST 2006


Changelog:
    quartz: Cast-qual warnings fix.

diff -urN a/dlls/quartz/pin.c b/dlls/quartz/pin.c
--- a/dlls/quartz/pin.c	2006-10-13 11:27:23.000000000 +0100
+++ b/dlls/quartz/pin.c	2006-11-11 10:59:51.000000000 +0000
@@ -845,7 +845,7 @@
     OutputPin_NewSegment
 };
 
-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;
 
@@ -862,10 +862,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/quartz/pin.h b/dlls/quartz/pin.h
--- a/dlls/quartz/pin.h	2006-05-23 13:48:30.000000000 +0100
+++ b/dlls/quartz/pin.h	2006-11-11 11:00:13.000000000 +0000
@@ -133,7 +133,7 @@
 HRESULT WINAPI OutputPin_NewSegment(IPin * iface, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);
 
 HRESULT OutputPin_CommitAllocator(OutputPin * This);
-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);
 HRESULT OutputPin_DeliverDisconnect(OutputPin * This);
 HRESULT OutputPin_DeliverNewSegment(OutputPin * This, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);



More information about the wine-patches mailing list