remove conditional seek from InboundAudioStream

This commit is contained in:
Stephen Birarda 2017-06-14 11:42:19 -07:00
parent 91cef9bb7c
commit c132e29b06

View file

@ -128,16 +128,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
int prePropertyPosition = message.getPosition();
int propertyBytes = parseStreamProperties(message.getType(), message.readWithoutCopy(message.getBytesLeftToRead()), networkFrames);
if (message.getType() == PacketType::ReplicatedMicrophoneAudioNoEcho
|| message.getType() == PacketType::ReplicatedMicrophoneAudioWithEcho
|| message.getType() == PacketType::ReplicatedInjectAudio
|| message.getType() == PacketType::ReplicatedSilentAudioFrame) {
message.seek(NUM_BYTES_RFC4122_UUID);
message.readString();
message.read(sizeof(quint16) + prePropertyPosition + propertyBytes);
} else {
message.seek(prePropertyPosition + propertyBytes);
}
message.seek(prePropertyPosition + propertyBytes);
// handle this packet based on its arrival status.
switch (arrivalInfo._status) {