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