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:
parent
9d88c9a0f7
commit
4a34b97e8c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user