Two small fixes to repair rtmp re-pushing

This commit is contained in:
Erik Zandvliet 2014-06-23 15:07:43 +02:00
parent 1a3c23d5d7
commit fefd0e2f6f
2 changed files with 2 additions and 0 deletions

View file

@ -222,6 +222,7 @@ namespace Mist {
INFO_MSG("Re-push initiated for track %lu, from user %u, will replace final track number %d", value, id, finalMap);
myMeta.tracks.erase(finalMap);
dataPages.erase(finalMap);
inputLoc.erase(finalMap);
}
}
givenTracks.insert(finalMap);

View file

@ -777,6 +777,7 @@ namespace Mist {
counter++;
if (counter > 8){
sending = true;
myMeta = meta_out;
negotiatePushTracks();
for (std::deque<JSON::Value>::iterator it = preBuf.begin(); it != preBuf.end(); it++){
bufferPacket((*it));