diff options
author | thlo <smarttv640@gmail.com> | 2013-09-01 21:09:15 +0200 |
---|---|---|
committer | thlo <smarttv640@gmail.com> | 2013-09-01 21:09:15 +0200 |
commit | 417202343b64947e80dbe14b4ab456cc6442e88c (patch) | |
tree | 1e73bb20f1ac91725dfd1e0f124c419c1fe7a391 /stvw_cfg.c | |
parent | 752587bccad186db28df673f84690eb265ecd991 (diff) | |
download | vdr-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-x | stvw_cfg.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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; } |