Andrew Talbot : qcap: Cast-qual warnings fix.

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


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

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

qcap: Cast-qual warnings fix.

---

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

diff --git a/dlls/qcap/pin.c b/dlls/qcap/pin.c
index d306307..7e579b6 100644
--- a/dlls/qcap/pin.c
+++ b/dlls/qcap/pin.c
@@ -357,7 +357,7 @@ HRESULT WINAPI OutputPin_Disconnect(IPin
     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 @@ 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/qcap/pin.h b/dlls/qcap/pin.h
index ca536c8..5dba694 100644
--- a/dlls/qcap/pin.h
+++ b/dlls/qcap/pin.h
@@ -76,5 +76,5 @@ HRESULT WINAPI OutputPin_Connect(IPin *
 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-cvs mailing list