quartz: Constify some variables
Andrew Talbot
andrew.talbot at talbotville.com
Tue Aug 7 15:01:25 CDT 2007
Changelog:
quartz: Constify some variables.
diff -urN a/dlls/quartz/control.c b/dlls/quartz/control.c
--- a/dlls/quartz/control.c 2006-10-13 11:27:23.000000000 +0100
+++ b/dlls/quartz/control.c 2007-08-07 20:41:11.000000000 +0100
@@ -163,7 +163,7 @@
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 -urN a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
--- a/dlls/quartz/dsoundrender.c 2007-05-17 12:43:46.000000000 +0100
+++ b/dlls/quartz/dsoundrender.c 2007-08-07 20:41:29.000000000 +0100
@@ -146,7 +146,7 @@
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 -urN a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
--- a/dlls/quartz/filtergraph.c 2007-06-27 15:13:12.000000000 +0100
+++ b/dlls/quartz/filtergraph.c 2007-08-07 20:41:39.000000000 +0100
@@ -89,7 +89,7 @@
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 -urN a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c
--- a/dlls/quartz/filtermapper.c 2007-06-27 15:13:12.000000000 +0100
+++ b/dlls/quartz/filtermapper.c 2007-08-07 20:41:49.000000000 +0100
@@ -189,7 +189,7 @@
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 -urN a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c
--- a/dlls/quartz/memallocator.c 2007-04-09 13:37:25.000000000 +0100
+++ b/dlls/quartz/memallocator.c 2007-08-07 20:41:58.000000000 +0100
@@ -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 -urN a/dlls/quartz/parser.c b/dlls/quartz/parser.c
--- a/dlls/quartz/parser.c 2007-05-17 12:43:45.000000000 +0100
+++ b/dlls/quartz/parser.c 2007-08-07 20:42:07.000000000 +0100
@@ -495,7 +495,8 @@
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 -urN a/dlls/quartz/parser.h b/dlls/quartz/parser.h
--- a/dlls/quartz/parser.h 2007-04-07 11:24:22.000000000 +0100
+++ b/dlls/quartz/parser.h 2007-08-07 20:57:57.000000000 +0100
@@ -55,5 +55,6 @@
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 -urN a/dlls/quartz/pin.c b/dlls/quartz/pin.c
--- a/dlls/quartz/pin.c 2007-04-09 13:37:24.000000000 +0100
+++ b/dlls/quartz/pin.c 2007-08-07 20:42:38.000000000 +0100
@@ -178,7 +178,8 @@
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 -urN a/dlls/quartz/pin.h b/dlls/quartz/pin.h
--- a/dlls/quartz/pin.h 2007-03-26 14:14:10.000000000 +0100
+++ b/dlls/quartz/pin.h 2007-08-07 20:42:28.000000000 +0100
@@ -89,7 +89,8 @@
/*** 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 -urN a/dlls/quartz/transform.c b/dlls/quartz/transform.c
--- a/dlls/quartz/transform.c 2007-05-17 12:43:45.000000000 +0100
+++ b/dlls/quartz/transform.c 2007-08-07 20:42:52.000000000 +0100
@@ -110,7 +110,9 @@
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;
More information about the wine-patches
mailing list