mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
src/gui/streaminfo2.cpp add MP3 info
Origin commit data
------------------
Commit: 90c68453a5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-03-14 (Tue, 14 Mar 2017)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user