1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

If we alrady have an IODevice for a HttpResult use this instead of re-requesting the resource again

This commit is contained in:
Uwe L. Korn
2014-09-22 13:29:59 +01:00
parent 212caaf39d
commit ca6f5148e3

View File

@@ -760,7 +760,8 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr result, const QString
d->state = Loading; d->state = Loading;
emit loading( d->currentTrack ); emit loading( d->currentTrack );
if ( !TomahawkUtils::isLocalResult( url ) && !TomahawkUtils::isHttpResult( url ) if ( !TomahawkUtils::isLocalResult( url )
&& !( TomahawkUtils::isHttpResult( url ) && io.isNull() )
&& !TomahawkUtils::isRtmpResult( url ) ) && !TomahawkUtils::isRtmpResult( url ) )
{ {
QSharedPointer<QNetworkReply> qnr = io.objectCast<QNetworkReply>(); QSharedPointer<QNetworkReply> qnr = io.objectCast<QNetworkReply>();