aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mpeg/decoder_mpg123.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 21:03:34 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 21:03:34 +0000
commit7ef8d11baeaf1847ba7f1df5d858f8cffea9300d (patch)
treea741fb49db8834efd4b46d760b89082547eb2a9d /src/plugins/Input/mpeg/decoder_mpg123.cpp
parent6f301f5880f7efce76ed46e7b502830642b87370 (diff)
downloadqmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.gz
qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.bz2
qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.zip
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9470 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mpeg/decoder_mpg123.cpp')
-rw-r--r--src/plugins/Input/mpeg/decoder_mpg123.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/Input/mpeg/decoder_mpg123.cpp b/src/plugins/Input/mpeg/decoder_mpg123.cpp
index e359f455d..a830c2c0c 100644
--- a/src/plugins/Input/mpeg/decoder_mpg123.cpp
+++ b/src/plugins/Input/mpeg/decoder_mpg123.cpp
@@ -29,13 +29,13 @@
ssize_t mpg123_read_cb (void *src, void *buf, size_t size)
{
- DecoderMPG123 *d = (DecoderMPG123 *) src;
+ DecoderMPG123 *d = static_cast<DecoderMPG123 *>(src);
return d->input()->read((char *)buf, size);
}
off_t mpg123_seek_cb(void *src, off_t offset, int whence)
{
- DecoderMPG123 *d = (DecoderMPG123 *) src;
+ DecoderMPG123 *d = static_cast<DecoderMPG123 *>(src);
if (d->input()->isSequential())
return -1;
@@ -61,14 +61,7 @@ off_t mpg123_seek_cb(void *src, off_t offset, int whence)
}
DecoderMPG123::DecoderMPG123(QIODevice *i) : Decoder(i)
-{
- m_totalTime = 0;
- m_rate = 0;
- m_frame_info.bitrate = 0;
- m_mpg123_encoding = MPG123_ENC_SIGNED_16;
- m_handle = nullptr;
- m_errors = 0;
-}
+{}
DecoderMPG123::~DecoderMPG123()
{