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:
Diffstat (limited to 'src/mpc-hc/DVBChannel.h')
-rw-r--r--src/mpc-hc/DVBChannel.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mpc-hc/DVBChannel.h b/src/mpc-hc/DVBChannel.h
index 61558e985..7cc4ea276 100644
--- a/src/mpc-hc/DVBChannel.h
+++ b/src/mpc-hc/DVBChannel.h
@@ -1,5 +1,5 @@
/*
- * (C) 2009-2015 see Authors.txt
+ * (C) 2009-2016 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -21,12 +21,14 @@
#pragma once
#include <vector>
+#include <array>
#define FORMAT_VERSION_0 0
#define FORMAT_VERSION_1 1
#define FORMAT_VERSION_2 2
#define FORMAT_VERSION_3 3
-#define FORMAT_VERSION_CURRENT 4
+#define FORMAT_VERSION_4 4
+#define FORMAT_VERSION_CURRENT 5
#define DVB_MAX_AUDIO 10
#define DVB_MAX_SUBTITLE 10
@@ -94,7 +96,7 @@ struct DVBStreamInfo {
PES_STREAM_TYPE nPesType = INVALID;
CString sLanguage;
- LCID GetLCID() { return ISO6392ToLcid(CStringA(sLanguage)); };
+ LCID GetLCID() const;
};
class CDVBChannel
@@ -116,6 +118,7 @@ public:
LPCTSTR GetName() const { return m_strName; };
ULONG GetFrequency() const { return m_ulFrequency; };
+ ULONG GetBandwidth() const { return m_ulBandwidth; }
int GetPrefNumber() const { return m_nPrefNumber; };
int GetOriginNumber() const { return m_nOriginNumber; };
ULONG GetONID() const { return m_ulONID; };
@@ -151,6 +154,7 @@ public:
void SetName(LPCTSTR Value) { m_strName = Value; };
void SetFrequency(ULONG Value) { m_ulFrequency = Value; };
+ void SetBandwidth(ULONG ulBandwidth) { m_ulBandwidth = ulBandwidth; }
void SetPrefNumber(int Value) { m_nPrefNumber = Value; };
void SetOriginNumber(int Value) { m_nOriginNumber = Value; };
void SetEncrypted(bool Value) { m_bEncrypted = Value; };
@@ -178,11 +182,14 @@ public:
}
// Returns true for channels with the same place, doesn't necessarily need to be equal (i.e if internal streams were updated)
- bool operator==(CDVBChannel const& channel) const { return GetPMT() == channel.GetPMT() && GetFrequency() == channel.GetFrequency(); }
+ bool operator==(CDVBChannel const& channel) const {
+ return GetPMT() == channel.GetPMT() && GetFrequency() == channel.GetFrequency();
+ }
private:
CString m_strName;
ULONG m_ulFrequency = 0;
+ ULONG m_ulBandwidth = 0;
int m_nPrefNumber = 0;
int m_nOriginNumber = 0;
bool m_bEncrypted = false;