Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep codec info displayed for HDR streams #3205

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

guiweber
Copy link
Contributor

@guiweber guiweber commented Dec 8, 2023

Several codecs support HDR, so the codec info is useful to display even for HDR streams.

Changes

  • Keep codec info displayed for HDR streams
  • Display codec info before any HDR info

Keep displaying codec for HDR content
@@ -375,16 +375,17 @@

private static void addVideoCodecDetails(Context context, LinearLayout layout, MediaStream stream) {
if (stream != null) {
if (stream.getCodec() != null && stream.getCodec().trim().length() > 0) {
String codec = stream.getCodec().toUpperCase();

Check warning

Code scanning / Android Lint

Implied default locale in case conversion Warning

Implicitly using the default locale is a common source of bugs: Use toUpperCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault().
@nielsvanvelzen nielsvanvelzen added this to the v0.16.1 milestone Dec 12, 2023
@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Dec 12, 2023
@nielsvanvelzen nielsvanvelzen merged commit a8ef52b into jellyfin:master Dec 12, 2023
5 checks passed
@nielsvanvelzen
Copy link
Member

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants