diff --git a/src/libtomahawk/audio/MediaStream.cpp b/src/libtomahawk/audio/MediaStream.cpp index cd43edf13..a57aa0759 100644 --- a/src/libtomahawk/audio/MediaStream.cpp +++ b/src/libtomahawk/audio/MediaStream.cpp @@ -28,11 +28,6 @@ MediaStream::MediaStream( QObject* parent ) : QObject( parent ) , m_type( Unknown ) , m_ioDevice ( nullptr ) - , m_started( false ) - , m_bufferingFinished( false ) - , m_eos( false ) - , m_pos( 0 ) - , m_streamSize( 0 ) { tDebug() << Q_FUNC_INFO; } @@ -43,11 +38,6 @@ MediaStream::MediaStream( const QUrl &url ) , m_type( Url ) , m_url( url ) , m_ioDevice ( nullptr ) - , m_started( false ) - , m_bufferingFinished( false ) - , m_eos( false ) - , m_pos( 0 ) - , m_streamSize( 0 ) { tDebug() << Q_FUNC_INFO; } @@ -57,11 +47,6 @@ MediaStream::MediaStream( QIODevice* device ) : QObject( 0 ) , m_type( IODevice ) , m_ioDevice ( device ) - , m_started( false ) - , m_bufferingFinished( false ) - , m_eos( false ) - , m_pos( 0 ) - , m_streamSize( 0 ) { tDebug() << Q_FUNC_INFO; diff --git a/src/libtomahawk/audio/MediaStream.h b/src/libtomahawk/audio/MediaStream.h index 81bc8ecf4..c7fdf1786 100644 --- a/src/libtomahawk/audio/MediaStream.h +++ b/src/libtomahawk/audio/MediaStream.h @@ -62,11 +62,11 @@ protected: QUrl m_url; QIODevice* m_ioDevice; - bool m_started; - bool m_bufferingFinished; - bool m_eos; - qint64 m_pos; - qint64 m_streamSize; + bool m_started = false; + bool m_bufferingFinished = false; + bool m_eos = false; + qint64 m_pos = 0; + qint64 m_streamSize = 0; char m_buffer[1048576]; private: