GstEngine: Use QUrl::isLocalFile

This commit is contained in:
Jonas Kvinge 2023-01-10 18:26:42 +01:00
parent be6b974334
commit b8a9da8a4e
1 changed files with 1 additions and 1 deletions

View File

@ -718,7 +718,7 @@ QByteArray GstEngine::FixupUrl(const QUrl &url) {
// It's a file:// url with a hostname set.
// QUrl::fromLocalFile does this when given a \\host\share\file path on Windows.
// 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();
uri = str.toUtf8();
}