Andrew Talbot : quartz: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 13 06:29:21 CST 2006


Module: wine
Branch: master
Commit: a0e9fc872f4c475a51375b4b5f923b9a195ddf02
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a0e9fc872f4c475a51375b4b5f923b9a195ddf02

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sat Nov 11 11:03:30 2006 +0000

quartz: Cast-qual warnings fix.

---

 dlls/quartz/pin.c |    6 +++---
 dlls/quartz/pin.h |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c
index 70ebd5e..9336022 100644
--- a/dlls/quartz/pin.c
+++ b/dlls/quartz/pin.c
@@ -845,7 +845,7 @@ static const IPinVtbl OutputPin_Vtbl =
     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 @@ HRESULT OutputPin_GetDeliveryBuffer(Outp
             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 --git a/dlls/quartz/pin.h b/dlls/quartz/pin.h
index d56dae1..bb48df3 100644
--- a/dlls/quartz/pin.h
+++ b/dlls/quartz/pin.h
@@ -133,7 +133,7 @@ HRESULT WINAPI OutputPin_EndFlush(IPin *
 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-cvs mailing list