mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Fixed crash in AudioEngine.
This commit is contained in:
@@ -158,14 +158,17 @@ void
|
||||
AudioEngine::stop()
|
||||
{
|
||||
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
|
||||
if ( isStopped() )
|
||||
return;
|
||||
|
||||
setState( Stopped );
|
||||
m_mediaObject->stop();
|
||||
|
||||
if ( !m_playlist.isNull() )
|
||||
m_playlist.data()->reset();
|
||||
|
||||
if ( !m_currentTrack.isNull() )
|
||||
emit timerPercentage( ( (double)m_timeElapsed / (double)m_currentTrack->duration() ) * 100.0 );
|
||||
|
||||
emit stopped();
|
||||
setCurrentTrack( Tomahawk::result_ptr() );
|
||||
|
||||
|
Reference in New Issue
Block a user