[vlc-devel] [PATCH] qt: fix subtitle path separator in open panel on windows

Pierre Lamot pierre at videolabs.io
Thu Mar 15 19:15:45 CET 2018


   :sub-file path expects native separator and not slashes.

   fix: #19976
---
 modules/gui/qt/components/open_panels.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/open_panels.cpp b/modules/gui/qt/components/open_panels.cpp
index 397f72cc2d..1778c8bae9 100644
--- a/modules/gui/qt/components/open_panels.cpp
+++ b/modules/gui/qt/components/open_panels.cpp
@@ -287,7 +287,7 @@ void FileOpenPanel::updateMRL()
 
     /* Options */
     if( ui.subGroupBox->isChecked() &&  !subUrl.isEmpty() ) {
-        mrl.append( " :sub-file=" + colon_escape( subUrl.toLocalFile() ) );
+        mrl.append( " :sub-file=" + colon_escape( toNativeSeparators( subUrl.toLocalFile() ) ) );
     }
 
     emit methodChanged( "file-caching" );
-- 
2.14.1



More information about the vlc-devel mailing list