quartz: Make some data const and static.
This commit is contained in:
parent
b2bffdda83
commit
c78621eda4
|
@ -234,7 +234,7 @@ static HRESULT ACMWrapper_Cleanup(TransformFilterImpl* pTransformFilter)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransformFuncsTable ACMWrapper_FuncsTable = {
|
static const TransformFuncsTable ACMWrapper_FuncsTable = {
|
||||||
NULL,
|
NULL,
|
||||||
ACMWrapper_ProcessSampleData,
|
ACMWrapper_ProcessSampleData,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
@ -257,7 +257,7 @@ static HRESULT AVIDec_Cleanup(TransformFilterImpl* pTransformFilter)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
TransformFuncsTable AVIDec_FuncsTable = {
|
static const TransformFuncsTable AVIDec_FuncsTable = {
|
||||||
AVIDec_ProcessBegin,
|
AVIDec_ProcessBegin,
|
||||||
AVIDec_ProcessSampleData,
|
AVIDec_ProcessSampleData,
|
||||||
AVIDec_ProcessEnd,
|
AVIDec_ProcessEnd,
|
||||||
|
|
|
@ -209,7 +209,7 @@ HRESULT WINAPI DllCanUnloadNow()
|
||||||
#define OUR_GUID_ENTRY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
#define OUR_GUID_ENTRY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
||||||
{ { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } , #name },
|
{ { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } , #name },
|
||||||
|
|
||||||
static struct {
|
static const struct {
|
||||||
const GUID riid;
|
const GUID riid;
|
||||||
const char *name;
|
const char *name;
|
||||||
} InterfaceDesc[] =
|
} InterfaceDesc[] =
|
||||||
|
|
|
@ -173,7 +173,7 @@ static HRESULT TransformFilter_OutputPin_Construct(const PIN_INFO * pPinInfo, AL
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT TransformFilter_Create(TransformFilterImpl* pTransformFilter, const CLSID* pClsid, TransformFuncsTable* pFuncsTable)
|
HRESULT TransformFilter_Create(TransformFilterImpl* pTransformFilter, const CLSID* pClsid, const TransformFuncsTable* pFuncsTable)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
PIN_INFO piInput;
|
PIN_INFO piInput;
|
||||||
|
|
|
@ -42,7 +42,7 @@ struct TransformFilterImpl
|
||||||
|
|
||||||
IPin ** ppPins;
|
IPin ** ppPins;
|
||||||
|
|
||||||
TransformFuncsTable * pFuncsTable;
|
const TransformFuncsTable * pFuncsTable;
|
||||||
};
|
};
|
||||||
|
|
||||||
HRESULT TransformFilter_Create(TransformFilterImpl*, const CLSID*, TransformFuncsTable* pFuncsTable);
|
HRESULT TransformFilter_Create(TransformFilterImpl*, const CLSID*, const TransformFuncsTable* pFuncsTable);
|
||||||
|
|
Loading…
Reference in New Issue