summaryrefslogtreecommitdiff
path: root/src/plugins/android
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@digia.com>2015-02-10 10:02:20 +0200
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-02-10 10:04:17 +0000
commitd3df85959b8e8ef90c512f1c9a8628f11167f7e6 (patch)
treea4c189b6f7c0b1ef41d5c6d1624e5b0c767f8d9e /src/plugins/android
parentd60347eb836d6f9063c8133495e52c8c6c2590c3 (diff)
downloadqtmultimedia-d3df85959b8e8ef90c512f1c9a8628f11167f7e6.tar.gz
Encode urls passed to media player properly
Task-number: QTBUG-44383 Change-Id: I2c63d5530ad76474ccad8ad69493419dd46032fa Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/plugins/android')
-rw-r--r--src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp b/src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp
index eae09c64f..a8f427f81 100644
--- a/src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp
+++ b/src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp
@@ -337,7 +337,7 @@ void QAndroidMediaPlayerControl::setMedia(const QMediaContent &mediaContent,
if (!mTempFile.isNull())
mediaPath = QStringLiteral("file://") + mTempFile->fileName();
} else {
- mediaPath = url.toString();
+ mediaPath = url.toString(QUrl::FullyEncoded);
}
if (mVideoSize.isValid() && mVideoOutput)