From b8a9da8a4eccd52956c82743f2a4546471ec12f1 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 10 Jan 2023 18:26:42 +0100 Subject: [PATCH] GstEngine: Use QUrl::isLocalFile --- src/engine/gstengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gstengine.cpp b/src/engine/gstengine.cpp index d73e482a4..cad907d30 100644 --- a/src/engine/gstengine.cpp +++ b/src/engine/gstengine.cpp @@ -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(); }