1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

* Fix AudioEngine killing Phonon's QIODevice.

This commit is contained in:
Christian Muehlhaeuser 2011-05-01 13:05:04 +02:00
parent af49afac35
commit 82a5058e4c

View File

@ -113,12 +113,6 @@ AudioEngine::stop()
m_expectStop = true;
m_mediaObject->stop();
if ( !m_input.isNull() )
{
m_input->close();
m_input.clear();
}
setCurrentTrack( Tomahawk::result_ptr() );
emit stopped();
}
@ -198,8 +192,6 @@ AudioEngine::loadTrack( const Tomahawk::result_ptr& result )
m_expectStop = true;
}
m_input = io;
if ( !m_currentTrack->url().startsWith( "http://" ) )
{
m_mediaObject->setCurrentSource( io.data() );
@ -215,6 +207,9 @@ AudioEngine::loadTrack( const Tomahawk::result_ptr& result )
}
m_mediaObject->setCurrentSource( furl );
}
m_input = io;
m_mediaObject->currentSource().setAutoDelete( true );
m_mediaObject->play();