1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00
This commit is contained in:
Uwe L. Korn
2014-10-22 11:19:49 +02:00
parent 271c68cd8f
commit 193df0743d

View File

@@ -673,7 +673,6 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr result, const QString
QSharedPointer<QNetworkReply> qnr = io.objectCast<QNetworkReply>(); QSharedPointer<QNetworkReply> qnr = io.objectCast<QNetworkReply>();
if ( !qnr.isNull() ) if ( !qnr.isNull() )
{ {
tLog() << "CASE 1";
d->audioOutput->setCurrentSource( new QNR_IODeviceStream( qnr, this ) ); d->audioOutput->setCurrentSource( new QNR_IODeviceStream( qnr, this ) );
// We keep track of the QNetworkReply in QNR_IODeviceStream // We keep track of the QNetworkReply in QNR_IODeviceStream
// and Phonon handles the deletion of the // and Phonon handles the deletion of the
@@ -683,7 +682,6 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr result, const QString
} }
else else
{ {
tLog() << "CASE 2";
d->audioOutput->setCurrentSource( io.data() ); d->audioOutput->setCurrentSource( io.data() );
// We handle the deletion via tracking in d->input // We handle the deletion via tracking in d->input
d->audioOutput->setAutoDelete( false ); d->audioOutput->setAutoDelete( false );
@@ -697,7 +695,6 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr result, const QString
*/ */
if ( !TomahawkUtils::isLocalResult( url ) ) if ( !TomahawkUtils::isLocalResult( url ) )
{ {
tLog() << "CASE 3";
QUrl furl = url; QUrl furl = url;
if ( url.contains( "?" ) ) if ( url.contains( "?" ) )
{ {
@@ -710,7 +707,6 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr result, const QString
} }
else else
{ {
tLog() << "CASE 4";
QString furl = url; QString furl = url;
if ( furl.startsWith( "file://" ) ) if ( furl.startsWith( "file://" ) )
furl = furl.right( furl.length() - 7 ); furl = furl.right( furl.length() - 7 );