1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

* This should fix the Windows local file playback issues.

This commit is contained in:
Christian Muehlhaeuser 2011-08-04 06:11:14 +02:00
parent 9d88c9a0f7
commit 4a34b97e8c

View File

@ -384,7 +384,14 @@ AudioEngine::loadTrack( const Tomahawk::result_ptr& result )
m_mediaObject->setCurrentSource( furl );
}
else
m_mediaObject->setCurrentSource( m_currentTrack->url() );
{
QString furl = m_currentTrack->url();
#ifdef Q_OS_WIN32
if ( furl.startsWith( "file://" ) )
furl = furl.right( furl.length() - 7 );
#endif
m_mediaObject->setCurrentSource( furl );
}
m_mediaObject->currentSource().setAutoDelete( true );
m_isPlayingHttp = true;