mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 14:28:24 +01:00
Move common initialisations to definition
This commit is contained in:
parent
67712bdeab
commit
76b1b48106
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user