GstEngine: Use QUrl::isLocalFile
This commit is contained in:
parent
be6b974334
commit
b8a9da8a4e
@ -718,7 +718,7 @@ QByteArray GstEngine::FixupUrl(const QUrl &url) {
|
|||||||
// It's a file:// url with a hostname set.
|
// It's a file:// url with a hostname set.
|
||||||
// QUrl::fromLocalFile does this when given a \\host\share\file path on Windows.
|
// QUrl::fromLocalFile does this when given a \\host\share\file path on Windows.
|
||||||
// Munge it back into a path that gstreamer will recognise.
|
// Munge it back into a path that gstreamer will recognise.
|
||||||
if (url.scheme() == "file" && !url.host().isEmpty()) {
|
if (url.isLocalFile() && !url.host().isEmpty()) {
|
||||||
QString str = "file:////" + url.host() + url.path();
|
QString str = "file:////" + url.host() + url.path();
|
||||||
uri = str.toUtf8();
|
uri = str.toUtf8();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user