quartz: Constify some variables.
This commit is contained in:
parent
4a21ad9f5c
commit
1f3133d214
|
@ -163,7 +163,7 @@ HRESULT WINAPI MediaSeekingImpl_ConvertTimeFormat(IMediaSeeking * iface, LONGLON
|
|||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
static inline LONGLONG Adjust(LONGLONG value, LONGLONG * pModifier, DWORD dwFlags)
|
||||
static inline LONGLONG Adjust(LONGLONG value, const LONGLONG * pModifier, DWORD dwFlags)
|
||||
{
|
||||
switch (dwFlags & AM_SEEKING_PositioningBitsMask)
|
||||
{
|
||||
|
|
|
@ -146,7 +146,7 @@ static inline HRESULT DSoundRender_GetPos(DSoundRenderImpl *This, DWORD *pPlayPo
|
|||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data, DWORD size)
|
||||
static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, const BYTE *data, DWORD size)
|
||||
{
|
||||
HRESULT hr;
|
||||
LPBYTE lpbuf1 = NULL;
|
||||
|
|
|
@ -89,7 +89,7 @@ static int EventsQueue_Destroy(EventsQueue* omr)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static int EventsQueue_PutEvent(EventsQueue* omr, Event* evt)
|
||||
static int EventsQueue_PutEvent(EventsQueue* omr, const Event* evt)
|
||||
{
|
||||
EnterCriticalSection(&omr->msg_crst);
|
||||
if ((omr->msg_toget == ((omr->msg_tosave + 1) % omr->ring_buffer_size)))
|
||||
|
|
|
@ -189,7 +189,7 @@ static int add_data(struct Vector * v, const BYTE * pData, int size)
|
|||
return index;
|
||||
}
|
||||
|
||||
static int find_data(struct Vector * v, const BYTE * pData, int size)
|
||||
static int find_data(const struct Vector * v, const BYTE * pData, int size)
|
||||
{
|
||||
int index;
|
||||
for (index = 0; index < v->current; index++)
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(quartz);
|
||||
|
||||
void dump_AM_SAMPLE2_PROPERTIES(AM_SAMPLE2_PROPERTIES * pProps)
|
||||
void dump_AM_SAMPLE2_PROPERTIES(const AM_SAMPLE2_PROPERTIES * pProps)
|
||||
{
|
||||
if (!pProps)
|
||||
{
|
||||
|
|
|
@ -495,7 +495,8 @@ static const IBaseFilterVtbl Parser_Vtbl =
|
|||
Parser_QueryVendorInfo
|
||||
};
|
||||
|
||||
HRESULT Parser_AddPin(ParserImpl * This, PIN_INFO * piOutput, ALLOCATOR_PROPERTIES * props, AM_MEDIA_TYPE * amt, float fSamplesPerSec, DWORD dwSampleSize, DWORD dwLength)
|
||||
HRESULT Parser_AddPin(ParserImpl * This, const PIN_INFO * piOutput, ALLOCATOR_PROPERTIES * props,
|
||||
const AM_MEDIA_TYPE * amt, float fSamplesPerSec, DWORD dwSampleSize, DWORD dwLength)
|
||||
{
|
||||
IPin ** ppOldPins;
|
||||
HRESULT hr;
|
||||
|
|
|
@ -55,5 +55,6 @@ typedef struct Parser_OutputPin
|
|||
MediaSeekingImpl mediaSeeking;
|
||||
} Parser_OutputPin;
|
||||
|
||||
HRESULT Parser_AddPin(ParserImpl * This, PIN_INFO * piOutput, ALLOCATOR_PROPERTIES * props, AM_MEDIA_TYPE * amt, float fSamplesPerSec, DWORD dwSampleSize, DWORD dwLength);
|
||||
HRESULT Parser_AddPin(ParserImpl * This, const PIN_INFO * piOutput, ALLOCATOR_PROPERTIES * props,
|
||||
const AM_MEDIA_TYPE * amt, float fSamplesPerSec, DWORD dwSampleSize, DWORD dwLength);
|
||||
HRESULT Parser_Create(ParserImpl*, const CLSID*, PFN_PROCESS_SAMPLE, PFN_QUERY_ACCEPT, PFN_PRE_CONNECT, PFN_CLEANUP);
|
||||
|
|
|
@ -178,7 +178,8 @@ HRESULT InputPin_Init(const PIN_INFO * pPinInfo, SAMPLEPROC pSampleProc, LPVOID
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT OutputPin_Init(const PIN_INFO * pPinInfo, ALLOCATOR_PROPERTIES * props, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, OutputPin * pPinImpl)
|
||||
HRESULT OutputPin_Init(const PIN_INFO * pPinInfo, const ALLOCATOR_PROPERTIES * props, LPVOID pUserData,
|
||||
QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, OutputPin * pPinImpl)
|
||||
{
|
||||
TRACE("\n");
|
||||
|
||||
|
|
|
@ -89,7 +89,8 @@ typedef struct PullPin
|
|||
|
||||
/*** Initializers ***/
|
||||
HRESULT InputPin_Init(const PIN_INFO * pPinInfo, SAMPLEPROC pSampleProc, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, InputPin * pPinImpl);
|
||||
HRESULT OutputPin_Init(const PIN_INFO * pPinInfo, ALLOCATOR_PROPERTIES *props, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, OutputPin * pPinImpl);
|
||||
HRESULT OutputPin_Init(const PIN_INFO * pPinInfo, const ALLOCATOR_PROPERTIES *props, LPVOID pUserData,
|
||||
QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, OutputPin * pPinImpl);
|
||||
HRESULT PullPin_Init(const PIN_INFO * pPinInfo, SAMPLEPROC pSampleProc, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, PullPin * pPinImpl);
|
||||
|
||||
/*** Constructors ***/
|
||||
|
|
|
@ -110,7 +110,9 @@ static HRESULT TransformFilter_InputPin_Construct(const PIN_INFO * pPinInfo, SAM
|
|||
return E_FAIL;
|
||||
}
|
||||
|
||||
static HRESULT TransformFilter_OutputPin_Construct(const PIN_INFO * pPinInfo, ALLOCATOR_PROPERTIES *props, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, IPin ** ppPin)
|
||||
static HRESULT TransformFilter_OutputPin_Construct(const PIN_INFO * pPinInfo, const ALLOCATOR_PROPERTIES *props,
|
||||
LPVOID pUserData, QUERYACCEPTPROC pQueryAccept,
|
||||
LPCRITICAL_SECTION pCritSec, IPin ** ppPin)
|
||||
{
|
||||
OutputPin * pPinImpl;
|
||||
|
||||
|
|
Loading…
Reference in New Issue