summaryrefslogtreecommitdiffstats
path: root/src/plugins/mediaservices
diff options
context:
space:
mode:
authorNicholas Young <nicholas.young@nokia.com>2010-02-16 02:13:41 (GMT)
committerNicholas Young <nicholas.young@nokia.com>2010-02-16 02:13:41 (GMT)
commit4374a796e1986b0b7f50256aefce4e9859fc4703 (patch)
tree4d9078a362af9441f8607edd4833e2724c2739af /src/plugins/mediaservices
parente91af4016e8482a9b1437b8edc71347b5cfd2a83 (diff)
downloadQt-4374a796e1986b0b7f50256aefce4e9859fc4703.zip
Qt-4374a796e1986b0b7f50256aefce4e9859fc4703.tar.gz
Qt-4374a796e1986b0b7f50256aefce4e9859fc4703.tar.bz2
Always pass encoded URLs to GStreamer. Fixes issue with spaces in
filenames.
Diffstat (limited to 'src/plugins/mediaservices')
-rw-r--r--src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp
index 355df2f..6945c2a 100644
--- a/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp
+++ b/src/plugins/mediaservices/gstreamer/mediaplayer/qgstreamerplayersession.cpp
@@ -116,7 +116,7 @@ void QGstreamerPlayerSession::load(const QUrl &url)
m_tags.clear();
emit tagsChanged();
- g_object_set(G_OBJECT(m_playbin), "uri", m_url.toString().toLocal8Bit().constData(), NULL);
+ g_object_set(G_OBJECT(m_playbin), "uri", m_url.toEncoded().constData(), NULL);
// if (!m_streamTypes.isEmpty()) {
// m_streamProperties.clear();