Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2012-05-20 15:11:43 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2012-05-20 15:11:43 +0400
commitc827ef7205641a6880b6342cad11252e31a4637f (patch)
tree925a5d454c90c2b693a18f92adb40f69346c50cf /src/filters/transform
parent97c714d3e02befb90984162843c65a41af898c3a (diff)
use UNREFERENCED_PARAMETER instead of UNUSED_ALWAYS which is always available
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4810 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform')
-rw-r--r--src/filters/transform/AVI2AC3Filter/AVI2AC3Filter.cpp2
-rw-r--r--src/filters/transform/BaseVideoFilter/BaseVideoFilter.cpp2
-rw-r--r--src/filters/transform/MpaDecFilter/MpaDecFilter.cpp6
-rw-r--r--src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp8
4 files changed, 9 insertions, 9 deletions
diff --git a/src/filters/transform/AVI2AC3Filter/AVI2AC3Filter.cpp b/src/filters/transform/AVI2AC3Filter/AVI2AC3Filter.cpp
index d2e57e90b..0c1309ade 100644
--- a/src/filters/transform/AVI2AC3Filter/AVI2AC3Filter.cpp
+++ b/src/filters/transform/AVI2AC3Filter/AVI2AC3Filter.cpp
@@ -415,7 +415,7 @@ HRESULT CAVI2AC3Filter::GetMediaType(int iPosition, CMediaType* pMediaType)
const GUID& majortype = m_pInput->CurrentMediaType().majortype;
const GUID& subtype = m_pInput->CurrentMediaType().subtype;
- UNUSED_ALWAYS(majortype);
+ UNREFERENCED_PARAMETER(majortype);
if (CheckAC3(&m_pInput->CurrentMediaType()) || CheckDTS(&m_pInput->CurrentMediaType())) {
if (iPosition < 0) {
diff --git a/src/filters/transform/BaseVideoFilter/BaseVideoFilter.cpp b/src/filters/transform/BaseVideoFilter/BaseVideoFilter.cpp
index f17ce1a46..62f002a58 100644
--- a/src/filters/transform/BaseVideoFilter/BaseVideoFilter.cpp
+++ b/src/filters/transform/BaseVideoFilter/BaseVideoFilter.cpp
@@ -453,7 +453,7 @@ HRESULT CBaseVideoFilter::DecideBufferSize(IMemAllocator* pAllocator, ALLOCATOR_
ExtractBIH(&m_pOutput->CurrentMediaType(), &bih);
long cBuffers = m_pOutput->CurrentMediaType().formattype == FORMAT_VideoInfo ? 1 : m_cBuffers;
- UNUSED_ALWAYS(cBuffers);
+ UNREFERENCED_PARAMETER(cBuffers);
pProperties->cBuffers = m_cBuffers;
pProperties->cbBuffer = bih.biSizeImage;
diff --git a/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp b/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp
index 31f9a94f5..5ef9ecae7 100644
--- a/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp
+++ b/src/filters/transform/MpaDecFilter/MpaDecFilter.cpp
@@ -1418,7 +1418,7 @@ static void decodeps2adpcm(ps2_state_t& s, int channel, BYTE* pin, double* pout)
int tbl_index = pin[0]>>4;
int shift = pin[0]&0xf;
int unk = pin[1]; // ?
- UNUSED_ALWAYS(unk);
+ UNREFERENCED_PARAMETER(unk);
if (tbl_index >= 10) {
ASSERT(0);
@@ -1513,7 +1513,7 @@ HRESULT CMpaDecFilter::ProcessPS2ADPCM()
HRESULT CMpaDecFilter::ProcessFlac()
{
WAVEFORMATEX* wfein = (WAVEFORMATEX*)m_pInput->CurrentMediaType().Format();
- UNUSED_ALWAYS(wfein);
+ UNREFERENCED_PARAMETER(wfein);
FLAC__stream_decoder_process_single ((FLAC__StreamDecoder*) m_flac.pDecoder);
return m_flac.hr;
@@ -1865,7 +1865,7 @@ HRESULT CMpaDecFilter::DecideBufferSize(IMemAllocator* pAllocator, ALLOCATOR_PRO
CMediaType& mt = m_pInput->CurrentMediaType();
WAVEFORMATEX* wfe = (WAVEFORMATEX*)mt.Format();
- UNUSED_ALWAYS(wfe);
+ UNREFERENCED_PARAMETER(wfe);
pProperties->cBuffers = 4;
// pProperties->cbBuffer = 1;
diff --git a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp
index 89e075335..42d7f5076 100644
--- a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp
+++ b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp
@@ -600,8 +600,8 @@ HRESULT CMpeg2DecFilter::Transform(IMediaSample* pIn)
REFERENCE_TIME rtStart = m_fb.rtStart;
REFERENCE_TIME rtStop = m_fb.rtStop;
- UNUSED_ALWAYS(rtStart);
- UNUSED_ALWAYS(rtStop);
+ UNREFERENCED_PARAMETER(rtStart);
+ UNREFERENCED_PARAMETER(rtStop);
//
@@ -1396,13 +1396,13 @@ STDMETHODIMP CMpeg2DecInputPin::Get(REFGUID PropSet, ULONG Id, LPVOID pInstanceD
switch (Id) {
case AM_RATE_SimpleRateChange: {
AM_SimpleRateChange* p = (AM_SimpleRateChange*)pPropertyData;
- UNUSED_ALWAYS(p);
+ UNREFERENCED_PARAMETER(p);
return E_PROP_ID_UNSUPPORTED;
}
break;
case AM_RATE_MaxFullDataRate: {
AM_MaxFullDataRate* p = (AM_MaxFullDataRate*)pPropertyData;
- UNUSED_ALWAYS(p);
+ UNREFERENCED_PARAMETER(p);
*p = 8*10000;
*pBytesReturned = sizeof(AM_MaxFullDataRate);
}