mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* This should fix the Windows local file playback issues.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user