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:
authorjonasno <jonasno@users.sourceforge.net>2010-02-19 03:19:24 +0300
committerjonasno <jonasno@users.sourceforge.net>2010-02-19 03:19:24 +0300
commit321a14e5c96f9edae64bba9f97002431d155ab9f (patch)
tree588909a26ae207fc76c909c2cdf658bf064dab41 /src/filters
parentca7ad0034eb7760572223a7e120d1be2e35e34d8 (diff)
const correction
Patch by tetsuo55 git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1677 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters')
-rw-r--r--src/filters/muxer/MatroskaMuxer/MatroskaFile.h2
-rw-r--r--src/filters/parser/BaseSplitter/BaseSplitterFile.h4
-rw-r--r--src/filters/parser/MatroskaSplitter/MatroskaFile.h6
-rw-r--r--src/filters/reader/asyncreader/asyncio.h12
-rw-r--r--src/filters/transform/MPCVideoDec/CpuId.h4
-rw-r--r--src/filters/transform/MPCVideoDec/DXVADecoder.h4
6 files changed, 16 insertions, 16 deletions
diff --git a/src/filters/muxer/MatroskaMuxer/MatroskaFile.h b/src/filters/muxer/MatroskaMuxer/MatroskaFile.h
index 664f44a6d..80273dd76 100644
--- a/src/filters/muxer/MatroskaMuxer/MatroskaFile.h
+++ b/src/filters/muxer/MatroskaMuxer/MatroskaFile.h
@@ -37,7 +37,7 @@ namespace MatroskaWriter
public:
CID(DWORD id);
- DWORD GetID() {return m_id;}
+ DWORD GetID() const {return m_id;}
virtual QWORD Size(bool fWithHeader = true);
virtual HRESULT Write(IStream* pStream);
};
diff --git a/src/filters/parser/BaseSplitter/BaseSplitterFile.h b/src/filters/parser/BaseSplitter/BaseSplitterFile.h
index 0567d41c5..e7498223e 100644
--- a/src/filters/parser/BaseSplitter/BaseSplitterFile.h
+++ b/src/filters/parser/BaseSplitter/BaseSplitterFile.h
@@ -61,8 +61,8 @@ public:
void BitByteAlign(), BitFlush();
HRESULT ByteRead(BYTE* pData, __int64 len);
- bool IsStreaming() {return m_fStreaming;}
- bool IsRandomAccess() {return m_fRandomAccess;}
+ bool IsStreaming() const {return m_fStreaming;}
+ bool IsRandomAccess() const {return m_fRandomAccess;}
HRESULT HasMoreData(__int64 len = 1, DWORD ms = 1);
};
diff --git a/src/filters/parser/MatroskaSplitter/MatroskaFile.h b/src/filters/parser/MatroskaSplitter/MatroskaFile.h
index 4d6d7562b..d1106ee24 100644
--- a/src/filters/parser/MatroskaSplitter/MatroskaFile.h
+++ b/src/filters/parser/MatroskaSplitter/MatroskaFile.h
@@ -44,9 +44,9 @@ namespace MatroskaReader
CSimpleVar(T val = 0) : m_val(val), m_fValid(false) {}
BASE& operator = (const BASE& v) {m_val = v.m_val; m_fValid = true; return(*this);}
BASE& operator = (T val) {m_val = val; m_fValid = true; return(*this);}
- operator T() {return m_val;}
+ operator T() const {return m_val;}
BASE& Set(T val) {m_val = val; m_fValid = true; return(*(BASE*)this);}
- bool IsValid() {return m_fValid;}
+ bool IsValid() const {return m_fValid;}
virtual HRESULT Parse(CMatroskaNode* pMN);
};
@@ -413,7 +413,7 @@ namespace MatroskaReader
UINT64 GetMasterTrack();
- REFERENCE_TIME GetRefTime(INT64 t) {return t*(REFERENCE_TIME)(SegmentInfo.TimeCodeScale)/100;}
+ REFERENCE_TIME GetRefTime(INT64 t) const {return t*(REFERENCE_TIME)(SegmentInfo.TimeCodeScale)/100;}
ChapterAtom* FindChapterAtom(UINT64 id, int nEditionEntry = 0);
};
diff --git a/src/filters/reader/asyncreader/asyncio.h b/src/filters/reader/asyncreader/asyncio.h
index af52d48c3..0f463bf7a 100644
--- a/src/filters/reader/asyncreader/asyncio.h
+++ b/src/filters/reader/asyncreader/asyncio.h
@@ -71,32 +71,32 @@ public:
HRESULT Complete();
// cancels the i/o. blocks until i/o is no longer pending
- HRESULT Cancel()
+ HRESULT Cancel() const
{
return S_OK;
};
// accessor functions
- LPVOID GetContext()
+ LPVOID GetContext() /*const*/
{
return m_pContext;
};
- DWORD GetUser()
+ DWORD GetUser() const
{
return m_dwUser;
};
- HRESULT GetHResult() {
+ HRESULT GetHResult() const {
return m_hr;
};
// we set m_lLength to the actual length
- LONG GetActualLength() {
+ LONG GetActualLength() const {
return m_lLength;
};
- LONGLONG GetStart() {
+ LONGLONG GetStart() const {
return m_llPos;
};
};
diff --git a/src/filters/transform/MPCVideoDec/CpuId.h b/src/filters/transform/MPCVideoDec/CpuId.h
index b196f8358..524ff9e4b 100644
--- a/src/filters/transform/MPCVideoDec/CpuId.h
+++ b/src/filters/transform/MPCVideoDec/CpuId.h
@@ -48,8 +48,8 @@ public:
CCpuId();
- int GetFeatures() { return m_nCPUFeatures; };
- PROCESSOR_TYPE GetType() { return m_nType; };
+ int GetFeatures() const { return m_nCPUFeatures; };
+ PROCESSOR_TYPE GetType() const { return m_nType; };
int GetProcessorNumber();
private :
diff --git a/src/filters/transform/MPCVideoDec/DXVADecoder.h b/src/filters/transform/MPCVideoDec/DXVADecoder.h
index 9f47502d7..19d874ab3 100644
--- a/src/filters/transform/MPCVideoDec/DXVADecoder.h
+++ b/src/filters/transform/MPCVideoDec/DXVADecoder.h
@@ -82,8 +82,8 @@ class CDXVADecoder
public :
// === Public functions
virtual ~CDXVADecoder();
- DXVAMode GetMode() { return m_nMode; };
- DXVA_ENGINE GetEngine() { return m_nEngine; };
+ DXVAMode GetMode() const { return m_nMode; };
+ DXVA_ENGINE GetEngine() const { return m_nEngine; };
void AllocExecuteParams (int nSize);
void SetDirectXVideoDec (IDirectXVideoDecoder* pDirectXVideoDec) { m_pDirectXVideoDec = pDirectXVideoDec; };