diff options
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; } |