diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2024-07-20 17:21:48 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2024-07-21 13:09:14 +0200 |
commit | a983e532fa1ab46aa4c0b8fefcf5fd51a3716481 (patch) | |
tree | 98d287969ede31f4643abc2b2decb5082c3244d1 | |
parent | 188f025f519bc99e51a20ea842df9898a461ca6d (diff) | |
download | rockbox-a983e532fa.tar.gz rockbox-a983e532fa.zip |
Track info: Hide codec when it differs between tracks
Instead of showing '???', to make it consistent
with other displayed info
Change-Id: I5597bd2203f6e4e86d8e170a854dd6da700537f3
-rw-r--r-- | apps/screens.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c index c88482d559..d6f3ea6304 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -656,10 +656,10 @@ static const char * id3_get_or_speak_info(int selected_item, void* data, } break; case LANG_FORMAT: - if (id3->codectype >= AFMT_NUM_CODECS) + if (id3->codectype == AFMT_UNKNOWN && info->track_ct > 1) return NULL; - strmemccpy(buffer, audio_formats[id3->codectype].label, buffer_len); + strmemccpy(buffer, get_codec_string(id3->codectype), buffer_len); val=buffer; if(say_it) |