summaryrefslogtreecommitdiffstats
path: root/src/gsttools
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/gsttools
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/gsttools')
-rw-r--r--src/gsttools/qgstreamerplayercontrol.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gsttools/qgstreamerplayercontrol.cpp b/src/gsttools/qgstreamerplayercontrol.cpp
index 73f43f0b9..03350a432 100644
--- a/src/gsttools/qgstreamerplayercontrol.cpp
+++ b/src/gsttools/qgstreamerplayercontrol.cpp
@@ -377,14 +377,10 @@ void QGstreamerPlayerControl::setMedia(const QMediaContent &content, QIODevice *
m_currentResource = content;
m_stream = stream;
- QNetworkRequest request;
+ QNetworkRequest request = content.request();
- if (m_stream) {
+ if (m_stream)
userStreamValid = stream->isOpen() && m_stream->isReadable();
- request = content.canonicalRequest();
- } else if (!content.isNull()) {
- request = content.canonicalRequest();
- }
#if !QT_CONFIG(gstreamer_app)
m_session->loadFromUri(request);