diff options
author | thlo <t.lohmar@gmx.de> | 2013-03-17 09:28:01 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-03-17 09:28:01 +0100 |
commit | 09f233d4c92c73dfa0456c7c87bcc758b68259ff (patch) | |
tree | 928b8a3c945b858823eeb57304f25c48197e2aa2 /vdr-smarttvweb/smarttvfactory.c | |
parent | 56ef7aaa40b5aff3bce5ace21215acb0be5ab92f (diff) | |
download | vdr-plugin-smarttvweb-09f233d4c92c73dfa0456c7c87bcc758b68259ff.tar.gz vdr-plugin-smarttvweb-09f233d4c92c73dfa0456c7c87bcc758b68259ff.tar.bz2 |
v0.9.6. Use UrlEncoding for guid. Determine Bitrate from file size.
Diffstat (limited to 'vdr-smarttvweb/smarttvfactory.c')
-rwxr-xr-x | vdr-smarttvweb/smarttvfactory.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vdr-smarttvweb/smarttvfactory.c b/vdr-smarttvweb/smarttvfactory.c index d0196c9..3478e9d 100755 --- a/vdr-smarttvweb/smarttvfactory.c +++ b/vdr-smarttvweb/smarttvfactory.c @@ -71,7 +71,7 @@ void SmartTvServerStartThread(void* arg) { } SmartTvServer::SmartTvServer(): mRequestCount(0), isInited(false), serverPort(PORT), mServerFd(-1), - mSegmentDuration(10), mHasMinBufferTime(40), mHasBitrate(6000000), mLiveChannels(20), + mSegmentDuration(10), mHasMinBufferTime(40), mLiveChannels(20), clientList(), mActiveSessions(0), mConfig(NULL) { } @@ -214,8 +214,8 @@ void SmartTvServer::loop() { << " --------------------- Received connection ---------------------" << endl; #endif - FD_SET(rfd, &mReadState); /* neuen Client fd dazu */ - FD_SET(rfd, &mWriteState); /* neuen Client fd dazu */ + FD_SET(rfd, &mReadState); + FD_SET(rfd, &mWriteState); if (rfd > maxfd) { maxfd = rfd; @@ -225,7 +225,6 @@ void SmartTvServer::loop() { clientList.resize(rfd+1, NULL); // Check. } clientList[rfd] = new cHttpResource(rfd, req_id, serverPort, this); - // clientList[rfd] = new cHttpResource(rfd, req_id, mOwnIp, serverPort, this); mActiveSessions ++; *(mLog.log()) << " + mActiveSessions= " << mActiveSessions << endl; } @@ -352,7 +351,6 @@ void SmartTvServer::initServer(string dir) { mSegmentDuration= mConfig->getSegmentDuration(); mHasMinBufferTime= mConfig->getHasMinBufferTime(); - mHasBitrate = mConfig->getHasBitrate(); mLiveChannels = mConfig->getLiveChannels(); *(mLog.log()) <<"HTTP server listening on port " << serverPort << endl; |