summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-03 21:53:33 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-03 21:53:33 +0000
commitc4c4798dea683c580397e7c979b128920653eb24 (patch)
tree4acee8fc64b71d101d1307f52d198130459a3f55 /setup.h
parent5a7b14e209e125260c0a3263bcf7477e7f700026 (diff)
downloadvdr-plugin-live-c4c4798dea683c580397e7c979b128920653eb24.tar.gz
vdr-plugin-live-c4c4798dea683c580397e7c979b128920653eb24.tar.bz2
- LastChannel value of "0" now returns as maximum possible channel number
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.h b/setup.h
index ef1cba3..e7740a7 100644
--- a/setup.h
+++ b/setup.h
@@ -1,8 +1,9 @@
#ifndef VDR_LIVE_SETUP_H
#define VDR_LIVE_SETUP_H
-#include <string>
#include <list>
+#include <numeric>
+#include <string>
#include "live.h"
namespace vdrlive {
@@ -21,7 +22,7 @@ public:
int GetServerPort() const { return m_serverPort; }
IpList const& GetServerIps() const { return m_serverIps; }
// vdr-setup
- int GetLastChannel() const { return m_lastChannel; }
+ int GetLastChannel() const { return m_lastChannel == 0 ? std::numeric_limits< int >::max() : m_lastChannel; }
bool ParseCommandLine( int argc, char* argv[] );
char const* CommandLineHelp() const;