mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +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 );
|
m_mediaObject->setCurrentSource( furl );
|
||||||
}
|
}
|
||||||
else
|
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_mediaObject->currentSource().setAutoDelete( true );
|
||||||
m_isPlayingHttp = true;
|
m_isPlayingHttp = true;
|
||||||
|
Reference in New Issue
Block a user