1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 16:31:58 +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 4079ec0739
commit 8a8a25a351

@ -502,12 +502,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 );