quartz: Cast-qual warnings fix.
This commit is contained in:
parent
4b675fd355
commit
a0e9fc872f
|
@ -845,7 +845,7 @@ static const IPinVtbl OutputPin_Vtbl =
|
||||||
OutputPin_NewSegment
|
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;
|
HRESULT hr;
|
||||||
|
|
||||||
|
@ -862,10 +862,10 @@ HRESULT OutputPin_GetDeliveryBuffer(OutputPin * This, IMediaSample ** ppSample,
|
||||||
hr = IMemInputPin_GetAllocator(This->pMemInputPin, &pAlloc);
|
hr = IMemInputPin_GetAllocator(This->pMemInputPin, &pAlloc);
|
||||||
|
|
||||||
if (SUCCEEDED(hr))
|
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))
|
if (SUCCEEDED(hr))
|
||||||
hr = IMediaSample_SetTime(*ppSample, (REFERENCE_TIME *)tStart, (REFERENCE_TIME *)tStop);
|
hr = IMediaSample_SetTime(*ppSample, tStart, tStop);
|
||||||
|
|
||||||
if (pAlloc)
|
if (pAlloc)
|
||||||
IMemAllocator_Release(pAlloc);
|
IMemAllocator_Release(pAlloc);
|
||||||
|
|
|
@ -133,7 +133,7 @@ HRESULT WINAPI OutputPin_EndFlush(IPin * iface);
|
||||||
HRESULT WINAPI OutputPin_NewSegment(IPin * iface, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);
|
HRESULT WINAPI OutputPin_NewSegment(IPin * iface, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);
|
||||||
|
|
||||||
HRESULT OutputPin_CommitAllocator(OutputPin * This);
|
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_SendSample(OutputPin * This, IMediaSample * pSample);
|
||||||
HRESULT OutputPin_DeliverDisconnect(OutputPin * This);
|
HRESULT OutputPin_DeliverDisconnect(OutputPin * This);
|
||||||
HRESULT OutputPin_DeliverNewSegment(OutputPin * This, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);
|
HRESULT OutputPin_DeliverNewSegment(OutputPin * This, REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);
|
||||||
|
|
Loading…
Reference in New Issue