mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add exception message for MediaCodecRenderer exception.
Otherwise, it's difficult to differentiate between different sources of ERROR_CODE_DECODING_FORMAT_UNSUPPORTED. PiperOrigin-RevId: 585966636
This commit is contained in:
parent
b8c1e22389
commit
eb01c3f440
1 changed files with 1 additions and 2 deletions
|
|
@ -1526,9 +1526,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
||||||
if (newFormat.sampleMimeType == null) {
|
if (newFormat.sampleMimeType == null) {
|
||||||
// If the new format is invalid, it is either a media bug or it is not intended to be played.
|
// If the new format is invalid, it is either a media bug or it is not intended to be played.
|
||||||
// See also https://github.com/google/ExoPlayer/issues/8283.
|
// See also https://github.com/google/ExoPlayer/issues/8283.
|
||||||
|
|
||||||
throw createRendererException(
|
throw createRendererException(
|
||||||
new IllegalArgumentException(),
|
new IllegalArgumentException("Sample MIME type is null."),
|
||||||
newFormat,
|
newFormat,
|
||||||
PlaybackException.ERROR_CODE_DECODING_FORMAT_UNSUPPORTED);
|
PlaybackException.ERROR_CODE_DECODING_FORMAT_UNSUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue