1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* AudioEngine shouldn't emit started() until we're really in playing state.

This commit is contained in:
Christian Muehlhaeuser 2013-01-04 12:48:19 +01:00
parent 5e4b0b96be
commit c6d8da2e98

View File

@ -496,7 +496,6 @@ AudioEngine::loadTrack( const Tomahawk::result_ptr& result )
}
m_input = io;
queueState( Playing );
emit started( m_currentTrack );
if ( TomahawkSettings::instance()->privateListeningMode() != TomahawkSettings::FullyPrivate )
{
@ -750,6 +749,7 @@ AudioEngine::onStateChanged( Phonon::State newState, Phonon::State oldState )
}
if ( newState == Phonon::PlayingState )
{
emit started( m_currentTrack );
setState( Playing );
}