summaryrefslogtreecommitdiff
path: root/src/plugins/directshow
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-05-13 11:02:04 +0200
committerLiang Qi <liang.qi@qt.io>2016-05-13 11:02:04 +0200
commit49461f9cffa5439e536a844ec3a0134c252141e6 (patch)
tree3d645b3c8fe5d9b374c6df8e12705ee090596d42 /src/plugins/directshow
parent7b0cae6c4f9f417e14a1553cd206bd929d299dbb (diff)
parent08e13bfcdb23eabfbc47bca7499b0b8aadce0ac7 (diff)
downloadqtmultimedia-49461f9cffa5439e536a844ec3a0134c252141e6.tar.gz
Merge remote-tracking branch 'origin/5.7' into dev
Change-Id: I773db005bbdc511169917ee35eb5b517e898926b
Diffstat (limited to 'src/plugins/directshow')
-rw-r--r--src/plugins/directshow/player/directshowplayerservice.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/directshow/player/directshowplayerservice.cpp b/src/plugins/directshow/player/directshowplayerservice.cpp
index a411715b8..d0c342ed4 100644
--- a/src/plugins/directshow/player/directshowplayerservice.cpp
+++ b/src/plugins/directshow/player/directshowplayerservice.cpp
@@ -67,6 +67,7 @@
#include <QtCore/qcoreapplication.h>
#include <QtCore/qdatetime.h>
+#include <QtCore/qdir.h>
#include <QtCore/qthread.h>
#include <QtCore/qvarlengtharray.h>
@@ -329,8 +330,10 @@ void DirectShowPlayerService::doSetUrlSource(QMutexLocker *locker)
if (!SUCCEEDED(hr)) {
locker->unlock();
+ const QString urlString = m_url.isLocalFile()
+ ? QDir::toNativeSeparators(m_url.toLocalFile()) : m_url.toString();
hr = m_graph->AddSourceFilter(
- reinterpret_cast<const OLECHAR *>(m_url.toString().utf16()), L"Source", &source);
+ reinterpret_cast<const OLECHAR *>(urlString.utf16()), L"Source", &source);
locker->relock();
}