From b917024aa1ac4cb0a40164132db3c6d2913157eb Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 3 Jan 2019 07:41:04 +0000 Subject: 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 --- src/plugins/Input/opus/decoder_opus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (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 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); } -- cgit v1.2.3-13-gbd6f