qcap: Cast-qual warnings fix.
This commit is contained in:
parent
5cc4a8915f
commit
4b675fd355
|
@ -357,7 +357,7 @@ HRESULT WINAPI OutputPin_Disconnect(IPin * iface)
|
|||
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(OutputPin * This, IMediaSample ** ppSample,
|
|||
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);
|
||||
|
|
|
@ -76,5 +76,5 @@ HRESULT WINAPI OutputPin_Connect(IPin * iface, IPin * pReceivePin, const AM_MEDI
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue