From 90c68453a5e94524e0eb04a6c50b29d79f35c5b4 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 14 Mar 2017 21:34:08 +0100 Subject: [PATCH] src/gui/streaminfo2.cpp add MP3 info --- src/gui/streaminfo2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index a3a32cc45..f65f6424b 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -626,7 +626,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) */ audioDecoder->getAudioInfo(type, layer, freq, lbitrate, mode); - if (type == AUDIO_FMT_MPEG) + if (type == AUDIO_FMT_MPEG || type == AUDIO_FMT_MP3) { const char *mpegmodes[] = { @@ -636,7 +636,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) "single_ch" }; int max_mode = sizeof(mpegmodes) / sizeof(mpegmodes[0]); - snprintf(buf, sizeof(buf), "MPEG %s (%d)", + snprintf(buf, sizeof(buf), "%s %s (%d)",type == AUDIO_FMT_MPEG ? "MPEG":"MP3", (mode > max_mode) ? "unk" : mpegmodes[mode], freq); }