From 0d919a16efda7db3a76765dbcdcb7574b6b3bb33 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 24 Jun 2020 16:55:59 +0000 Subject: show codec and bitrate for IceCast streams (#1046) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9419 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/opus/decoder_opus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/Input/opus/decoder_opus.cpp') diff --git a/src/plugins/Input/opus/decoder_opus.cpp b/src/plugins/Input/opus/decoder_opus.cpp index 3f0c11dd2..5a6ffdb78 100644 --- a/src/plugins/Input/opus/decoder_opus.cpp +++ b/src/plugins/Input/opus/decoder_opus.cpp @@ -119,7 +119,7 @@ bool DecoderOpus::initialize() return false; } - m_chan = head->channel_count; + m_chan = head->channel_count; ChannelMap chmap = findChannelMap(m_chan); if(chmap.isEmpty()) @@ -127,6 +127,7 @@ bool DecoderOpus::initialize() qWarning("DecoderOpus: unsupported number of channels: %d", m_chan); return false; } + setProperty(Qmmp::FORMAT_NAME, "Ogg Opus"); configure(48000, chmap, Qmmp::PCM_FLOAT); //opus codec supports 48 kHz only return true; } -- cgit v1.2.3-13-gbd6f