Update TrackEvent.java
This commit is contained in:
parent
fc2099dede
commit
b27b65199a
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user