Update TrackEvent.java

This commit is contained in:
Philippe Simons 2023-10-19 21:53:15 +02:00 committed by christosts
parent fc2099dede
commit b27b65199a

View file

@ -115,8 +115,7 @@ import androidx.media3.common.util.UnstableApi;
}
statusByte = firstByte;
} else {
if (firstByte == META_EVENT_STATUS) { // This is a Meta event.
} else if (firstByte == META_EVENT_STATUS) { // This is a Meta event.
int metaEventMessageType = parsableTrackEventBytes.readUnsignedByte();
int eventLength = readVariableLengthInt(parsableTrackEventBytes);
@ -151,8 +150,7 @@ import androidx.media3.common.util.UnstableApi;
} while (currentByte != SYSEX_END_STATUS);
} else {
throw ParserException.createForUnsupportedContainerFeature(
"Unknown track events.");
}
"Unknown track event: " + firstByte);
}
eventFileSizeBytes = parsableTrackEventBytes.getPosition() - startingPosition;