Fixed several calls to toNetPacked and netPrepare where it wasn't neccesary.
This commit is contained in:
parent
68b74997fc
commit
768282866e
1 changed files with 6 additions and 2 deletions
|
@ -180,7 +180,9 @@ void DTSC::Stream::addPacket(JSON::Value & newPack){
|
|||
newPos.seekTime++;
|
||||
}
|
||||
buffers[newPos] = newPack;
|
||||
buffers[newPos].toNetPacked();//make sure package is packed and ready
|
||||
if (buffercount > 1){
|
||||
buffers[newPos].toNetPacked();//make sure package is packed and ready
|
||||
}
|
||||
datapointertype = INVALID;
|
||||
///\todo Save keyframes when they arrive.
|
||||
std::string tmp = "";
|
||||
|
@ -247,7 +249,9 @@ void DTSC::Stream::addPacket(JSON::Value & newPack){
|
|||
}
|
||||
buffers.erase(buffers.begin());
|
||||
}
|
||||
metadata.netPrepare();
|
||||
if (buffercount > 1){
|
||||
metadata.netPrepare();
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns a direct pointer to the data attribute of the last received packet, if available.
|
||||
|
|
Loading…
Add table
Reference in a new issue