Further fixes and optimizes to RTMP and generic output.

This commit is contained in:
Thulinma 2014-05-15 16:15:26 +02:00
parent 6f5f3b37c2
commit 407d2e344d
2 changed files with 10 additions and 3 deletions

View file

@ -487,6 +487,14 @@ namespace Mist {
statsPage.keepAlive();
}
int tNum = 0;
if (!playerConn.getData()){
playerConn = IPC::sharedClient(streamName + "_users", 30, true);
if (!playerConn.getData()){
DEBUG_MSG(DLVL_WARN, "Player connection failure - aborting output");
myConn.close();
return;
}
}
for (std::set<unsigned long>::iterator it = selectedTracks.begin(); it != selectedTracks.end() && tNum < 5; it++){
char thisData[6];
thisData[0] = ((*it >> 24) & 0xFF);