summaryrefslogtreecommitdiff
path: root/stvw_cfg.c
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-09-01 21:09:15 +0200
committerthlo <smarttv640@gmail.com>2013-09-01 21:09:15 +0200
commit417202343b64947e80dbe14b4ab456cc6442e88c (patch)
tree1e73bb20f1ac91725dfd1e0f124c419c1fe7a391 /stvw_cfg.c
parent752587bccad186db28df673f84690eb265ecd991 (diff)
downloadvdr-plugin-smarttvweb-417202343b64947e80dbe14b4ab456cc6442e88c.tar.gz
vdr-plugin-smarttvweb-417202343b64947e80dbe14b4ab456cc6442e88c.tar.bz2
New enable flag for RecCmds and new Port parameter in smarttvweb.conf. Bug fixes.
Diffstat (limited to 'stvw_cfg.c')
-rwxr-xr-xstvw_cfg.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/stvw_cfg.c b/stvw_cfg.c
index 75b8de6..2c805ea 100755
--- a/stvw_cfg.c
+++ b/stvw_cfg.c
@@ -33,7 +33,7 @@
cSmartTvConfig::cSmartTvConfig(string d): mConfigDir(d), mLog(NULL), mCfgFile(NULL),
mLogFile(), mMediaFolder(), mSegmentDuration(), mHasMinBufferTime(), mHasBitrateCorrection(),
- mLiveChannels(), mGroupSep(IGNORE), mServerAddress("") {
+ mLiveChannels(), mGroupSep(IGNORE), mServerAddress(""), mServerPort(8000), mRecCmds(false) {
#ifndef STANDALONE
mLogFile= "";
@@ -140,7 +140,17 @@ void cSmartTvConfig::readConfig() {
if (strcmp(attr, "ServerAddress") == 0) {
mServerAddress = value;
- // cout << " Found mLiveChannels= " <<mLiveChannels << endl;
+ continue;
+ }
+
+ if (strcmp(attr, "ServerPort") == 0) {
+ mServerPort = atoi(value);
+ continue;
+ }
+
+ if (strcmp(attr, "RecCmds") == 0) {
+ if (strcmp(value, "enable") == 0)
+ mRecCmds = true;
continue;
}