summaryrefslogtreecommitdiffstats
path: root/apps/screens.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 81472e6cc7..b1a48c5bd6 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -53,6 +53,7 @@
#include "backdrop.h"
#include "viewport.h"
#include "language.h"
+#include "replaygain.h"
#if CONFIG_CODEC == SWCODEC
#include "dsp.h"
@@ -728,10 +729,12 @@ static const char* id3_get_info(int selected_item, void* data,
break;
#if CONFIG_CODEC == SWCODEC
case LANG_ID3_TRACK_GAIN:
- val=id3->track_gain_string;
+ replaygain_itoa(buffer, buffer_len, id3->track_gain);
+ val=(id3->track_gain) ? buffer : NULL; /* only show gains!=0 */
break;
case LANG_ID3_ALBUM_GAIN:
- val=id3->album_gain_string;
+ replaygain_itoa(buffer, buffer_len, id3->album_gain);
+ val=(id3->album_gain) ? buffer : NULL; /* only show gains!=0 */
break;
#endif
case LANG_ID3_PATH: