1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 13:21:52 +02:00

* Fixed TWK-1292: Issues playing fils with '#' in the filename.

This commit is contained in:
Christian Muehlhaeuser
2013-04-29 01:37:11 +02:00
parent 1a75a46f78
commit 87311cfbd7

View File

@@ -503,12 +503,11 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr& result, QSharedPointe
else
{
QString furl = m_currentTrack->url();
#ifdef Q_WS_WIN
if ( furl.startsWith( "file://" ) )
furl = furl.right( furl.length() - 7 );
#endif
tLog( LOGVERBOSE ) << "Passing to Phonon:" << furl << furl.toLatin1();
m_mediaObject->setCurrentSource( furl );
tLog( LOGVERBOSE ) << "Passing to Phonon:" << QUrl::fromLocalFile( furl );
m_mediaObject->setCurrentSource( QUrl::fromLocalFile( furl ) );
}
m_mediaObject->currentSource().setAutoDelete( true );