mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
use _segmentStartIndex before changing its value
This commit is contained in:
parent
0d9421a65e
commit
aa2a8edc6f
1 changed files with 3 additions and 3 deletions
|
@ -197,11 +197,11 @@ qint64 PacketList::writeData(const char* data, qint64 maxSize) {
|
|||
// copy from currentPacket where the segment started to the beginning of the newPacket
|
||||
newPacket->write(_currentPacket->getPayload() + _segmentStartIndex, segmentSize);
|
||||
|
||||
// the current segment now starts at the beginning of the new packet
|
||||
_segmentStartIndex = _extendedHeader.size();
|
||||
|
||||
// shrink the current payload to the actual size of the packet
|
||||
_currentPacket->setPayloadSize(_segmentStartIndex);
|
||||
|
||||
// the current segment now starts at the beginning of the new packet
|
||||
_segmentStartIndex = _extendedHeader.size();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue