aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/opus/decoder_opus.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-06-24 16:55:59 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-06-24 16:55:59 +0000
commit0d919a16efda7db3a76765dbcdcb7574b6b3bb33 (patch)
treea6683343f5b9b6b53e1024b6f022cddeaf8fb223 /src/plugins/Input/opus/decoder_opus.cpp
parent1ee602e514927b7a7db427c4fcbedfded19c44e0 (diff)
downloadqmmp-0d919a16efda7db3a76765dbcdcb7574b6b3bb33.tar.gz
qmmp-0d919a16efda7db3a76765dbcdcb7574b6b3bb33.tar.bz2
qmmp-0d919a16efda7db3a76765dbcdcb7574b6b3bb33.zip
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
Diffstat (limited to 'src/plugins/Input/opus/decoder_opus.cpp')
-rw-r--r--src/plugins/Input/opus/decoder_opus.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}