From ca6f5148e37f10972d789531ab87f6344fbf8ea3 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 22 Sep 2014 13:29:59 +0100 Subject: [PATCH] If we alrady have an IODevice for a HttpResult use this instead of re-requesting the resource again --- src/libtomahawk/audio/AudioEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/audio/AudioEngine.cpp b/src/libtomahawk/audio/AudioEngine.cpp index d6ce14f77..fdef9d37e 100644 --- a/src/libtomahawk/audio/AudioEngine.cpp +++ b/src/libtomahawk/audio/AudioEngine.cpp @@ -760,7 +760,8 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr result, const QString d->state = Loading; emit loading( d->currentTrack ); - if ( !TomahawkUtils::isLocalResult( url ) && !TomahawkUtils::isHttpResult( url ) + if ( !TomahawkUtils::isLocalResult( url ) + && !( TomahawkUtils::isHttpResult( url ) && io.isNull() ) && !TomahawkUtils::isRtmpResult( url ) ) { QSharedPointer qnr = io.objectCast();