Module: wine Branch: master Commit: 1f3133d2149052748275e76f2688925731c665e9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f3133d2149052748275e76f26...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Tue Aug 7 21:01:25 2007 +0100
quartz: Constify some variables.
---
dlls/quartz/control.c | 2 +- dlls/quartz/dsoundrender.c | 2 +- dlls/quartz/filtergraph.c | 2 +- dlls/quartz/filtermapper.c | 2 +- dlls/quartz/memallocator.c | 2 +- dlls/quartz/parser.c | 3 ++- dlls/quartz/parser.h | 3 ++- dlls/quartz/pin.c | 3 ++- dlls/quartz/pin.h | 3 ++- dlls/quartz/transform.c | 4 +++- 10 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/dlls/quartz/control.c b/dlls/quartz/control.c index 5f13df6..4a7eb02 100644 --- a/dlls/quartz/control.c +++ b/dlls/quartz/control.c @@ -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) { diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c index 9e73eee..a7ebd9f 100644 --- a/dlls/quartz/dsoundrender.c +++ b/dlls/quartz/dsoundrender.c @@ -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; diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index df1929d..a64562a 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -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))) diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c index 7f36fd2..8b7cf7d 100644 --- a/dlls/quartz/filtermapper.c +++ b/dlls/quartz/filtermapper.c @@ -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++) diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c index f9c64ac..f1700aa 100644 --- a/dlls/quartz/memallocator.c +++ b/dlls/quartz/memallocator.c @@ -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) { diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c index 9bbda09..39ea58b 100644 --- a/dlls/quartz/parser.c +++ b/dlls/quartz/parser.c @@ -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; diff --git a/dlls/quartz/parser.h b/dlls/quartz/parser.h index 25f1d6d..590e6a5 100644 --- a/dlls/quartz/parser.h +++ b/dlls/quartz/parser.h @@ -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); diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c index b7d9a52..9960dff 100644 --- a/dlls/quartz/pin.c +++ b/dlls/quartz/pin.c @@ -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");
diff --git a/dlls/quartz/pin.h b/dlls/quartz/pin.h index 02830cc..29b5a32 100644 --- a/dlls/quartz/pin.h +++ b/dlls/quartz/pin.h @@ -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 ***/ diff --git a/dlls/quartz/transform.c b/dlls/quartz/transform.c index 9adaf17..b63cacd 100644 --- a/dlls/quartz/transform.c +++ b/dlls/quartz/transform.c @@ -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;