Fixed more live stuff.

This commit is contained in:
Thulinma 2014-10-01 13:01:34 +02:00
parent a17f6d06fd
commit 3fa253c297

View file

@ -169,6 +169,7 @@ namespace Mist {
}
void Output::bufferPacket(JSON::Value & pack){
if (!pack["trackid"].asInt()){return;}
if (myMeta.tracks[pack["trackid"].asInt()].type != "video"){
if ((pack["time"].asInt() - bookKeeping[trackMap[pack["trackid"].asInt()]].lastKeyTime) >= 5000){
pack["keyframe"] = 1LL;