summaryrefslogtreecommitdiffstats
path: root/src/plugins/winrt
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-04-24 10:56:24 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-05-13 09:42:53 +0000
commit5ed9d1d830b90c5d5093cc7ca4a5c7cd5b15240c (patch)
treea316240590730ef6f7b8625e71b95fd0d5c2835a /src/plugins/winrt
parentf0f354f2a1eec54733c871bf735f67e0c4ea945c (diff)
Deprecate canonicalUrl and canonicalRequest in QMediaContent
Since QMediaContent can contain only one content and media resources are already deprecated, canonicalUrl and canonicalRequest are a bit confusing and outdated. Deprecated and replaced by QMediaContent::request() which already contains the url. Change-Id: I418006e112f49466b0129bf1e6e1ae629c714538 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/winrt')
-rw-r--r--src/plugins/winrt/qwinrtmediaplayercontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/winrt/qwinrtmediaplayercontrol.cpp b/src/plugins/winrt/qwinrtmediaplayercontrol.cpp
index 7991f435b..374ff2831 100644
--- a/src/plugins/winrt/qwinrtmediaplayercontrol.cpp
+++ b/src/plugins/winrt/qwinrtmediaplayercontrol.cpp
@@ -759,7 +759,7 @@ void QWinRTMediaPlayerControl::setMedia(const QMediaContent &media, QIODevice *s
}
emit mediaChanged(media);
- QString urlString = media.canonicalUrl().toString();
+ QString urlString = media.request().url().toString();
if (!d->stream) {
// If we can read the file via Qt, use the byte stream approach
const auto resources = media.resources();