summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-09-29 10:00:11 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-10-09 08:57:49 +0000
commit9760c1baf8961c6e93a0a565d9611221ffbe1704 (patch)
tree82ba66000e28f93ddfb611ec93d2083f4ed89b45 /src
parent09b41d0cfb09c01f9325ab0a65fa607c6537a5c6 (diff)
Fix loading remote m3u files
Fixed a case where it was not possible to load remote m3u files as the parser would start, and fail, before the file was received. Task-number: QTBUG-62255 Change-Id: If730539dbfd25c9ef2ab97a05af3a50c685a304b Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/multimedia/playback/qplaylistfileparser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/multimedia/playback/qplaylistfileparser.cpp b/src/multimedia/playback/qplaylistfileparser.cpp
index d0617d2c..47a3d239 100644
--- a/src/multimedia/playback/qplaylistfileparser.cpp
+++ b/src/multimedia/playback/qplaylistfileparser.cpp
@@ -563,7 +563,8 @@ void QPlaylistFileParser::start(const QNetworkRequest& request, const QString &m
connect(d->m_source.data(), SIGNAL(finished()), this, SLOT(handleData()));
connect(d->m_source.data(), SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(handleError()));
- d->handleData();
+ if (url.isLocalFile())
+ d->handleData();
}
void QPlaylistFileParser::abort()