aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mpeg/decoder_mpg123.cpp
diff options
context:
space:
mode:
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()
{