diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2011-11-15 01:15:12 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2011-11-15 01:15:12 +0200 |
commit | c55e67f00431cc2ce54c1f3636cb5d7dae9dec9f (patch) | |
tree | a2b36cecf6f196940cf81624cc65c58f179503c4 /examples | |
parent | e86389fde069374db8d3c6667825708f99eeb984 (diff) |
Fix uri encoding in the player example.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/player/player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/player/player.cpp b/examples/player/player.cpp index c82587d..25bf0a0 100644 --- a/examples/player/player.cpp +++ b/examples/player/player.cpp @@ -18,6 +18,7 @@ */ #include "player.h" #include <QtCore/QDir> +#include <QtCore/QUrl> #include <QGlib/Connect> #include <QGlib/Error> #include <QGst/Pipeline> @@ -51,7 +52,7 @@ void Player::setUri(const QString & uri) //if uri is not a real uri, assume it is a file path if (realUri.indexOf("://") < 0) { - realUri = "file://" + QFileInfo(realUri).absoluteFilePath(); + realUri = QUrl::fromLocalFile(realUri).toEncoded(); } if (!m_pipeline) { |