Skip to content

Commit

Permalink
HDR: Add period to end of error message.
Browse files Browse the repository at this point in the history
For tone mapping error messages.

PiperOrigin-RevId: 477447799
  • Loading branch information
dway123 authored and marcbaechinger committed Oct 20, 2022
1 parent 507a1be commit 05ce639
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void onFallbackApplied(
assertThat(exception)
.hasCauseThat()
.hasMessageThat()
.isEqualTo("Tone-mapping requested but not supported by the decoder");
.isEqualTo("Tone-mapping requested but not supported by the decoder.");
}
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void onFallbackApplied(
assertThat(exception)
.hasCauseThat()
.hasMessageThat()
.isEqualTo("Tone-mapping requested but not supported by the decoder");
.isEqualTo("Tone-mapping requested but not supported by the decoder.");
}
return;
}
Expand Down Expand Up @@ -147,7 +147,7 @@ public void onFallbackApplied(
assertThat(exception)
.hasCauseThat()
.hasMessageThat()
.isEqualTo("Tone-mapping requested but not supported by the decoder");
.isEqualTo("Tone-mapping requested but not supported by the decoder.");
}
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public DefaultCodec(
// https://developer.android.com/reference/android/media/MediaFormat#KEY_COLOR_TRANSFER_REQUEST.
checkArgument(
Api29.isSdrToneMappingEnabled(mediaCodec.getInputFormat()),
"Tone-mapping requested but not supported by the decoder");
"Tone-mapping requested but not supported by the decoder.");
}
if (isVideo && !isDecoder) {
inputSurface = mediaCodec.createInputSurface();
Expand Down

0 comments on commit 05ce639

Please sign in to comment.