summaryrefslogtreecommitdiff
path: root/stvw_cfg.c
diff options
context:
space:
mode:
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;
}