From 384209ba70d9f1802d5c50c15cdb13fb9f13acf7 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 25 Feb 2019 16:35:29 +0100 Subject: [PATCH] Fix UNC path in gst engine --- src/engine/gstengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gstengine.cpp b/src/engine/gstengine.cpp index 32223bb38..38dbdb554 100644 --- a/src/engine/gstengine.cpp +++ b/src/engine/gstengine.cpp @@ -730,7 +730,7 @@ QByteArray GstEngine::FixupUrl(const QUrl &url) { // 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()) { - QString str = "//" + url.host() + url.path(); + QString str = "file:////" + url.host() + url.path(); uri = str.toLocal8Bit(); } else if (url.scheme() == "cdda") { @@ -744,7 +744,7 @@ QByteArray GstEngine::FixupUrl(const QUrl &url) { // So we handle them ourselve: we extract the track number and re-create an URL with only cdda:// + the track number (which can be handled by Gstreamer). // We keep the device in mind, and we will set it later using SourceSetupCallback QStringList path = url.path().split('/'); - str = QString("cdda://%1a").arg(path.takeLast()); + str = QString("cdda://%1").arg(path.takeLast()); QString device = path.join("/"); if (current_pipeline_) current_pipeline_->SetSourceDevice(device); }