diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-01-03 07:41:04 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-01-03 07:41:04 +0000 |
| commit | b917024aa1ac4cb0a40164132db3c6d2913157eb (patch) | |
| tree | 4424bef9f2ac9a3dab21c822836a1b5c79ffee47 /src/plugins/Input/opus/decoder_opus.cpp | |
| parent | bef5a901922c002815d047d276e61ec0bf8c0f46 (diff) | |
| download | qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.gz qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.bz2 qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.zip | |
fixed build with -Werror=zero-as-null-pointer-constant
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8572 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/opus/decoder_opus.cpp')
| -rw-r--r-- | src/plugins/Input/opus/decoder_opus.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/Input/opus/decoder_opus.cpp b/src/plugins/Input/opus/decoder_opus.cpp index 1c68f7e55..92852afef 100644 --- a/src/plugins/Input/opus/decoder_opus.cpp +++ b/src/plugins/Input/opus/decoder_opus.cpp @@ -67,7 +67,7 @@ static opus_int64 opustell(void *src) DecoderOpus::DecoderOpus(const QString &url, QIODevice *i) : Decoder(i) { m_totalTime = 0; - m_opusfile = 0; + m_opusfile = nullptr; m_chan = 0; m_bitrate = 0; m_url = url; @@ -77,7 +77,7 @@ DecoderOpus::~DecoderOpus() { if (m_opusfile) op_free(m_opusfile); - m_opusfile = 0; + m_opusfile = nullptr; } bool DecoderOpus::initialize() @@ -97,9 +97,9 @@ bool DecoderOpus::initialize() opusread, opusseek, opustell, - 0, + nullptr, }; - m_opusfile = op_open_callbacks(this, &opuscb, 0, 0, 0); + m_opusfile = op_open_callbacks(this, &opuscb, nullptr, 0, nullptr); if (!m_opusfile) { @@ -150,7 +150,7 @@ void DecoderOpus::seek(qint64 time) qint64 DecoderOpus::read(unsigned char *data, qint64 maxSize) { - int frames = op_read_float(m_opusfile, (float*) data, maxSize / sizeof(float), 0); + int frames = op_read_float(m_opusfile, (float*) data, maxSize / sizeof(float), nullptr); m_bitrate = op_bitrate_instant(m_opusfile) / 1000; return frames * m_chan * sizeof(float); } |
