[vlc-commits] Qt: fix subtitle path separator in open panel on windows

Pierre Lamot git at videolan.org
Thu Mar 15 19:28:58 CET 2018


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Mar 15 19:15:45 2018 +0100| [67ebc093d9a3c7011d8a6a3422c1616ee51ba39e] | committer: Jean-Baptiste Kempf

Qt: fix subtitle path separator in open panel on windows

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

Closes #19976

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67ebc093d9a3c7011d8a6a3422c1616ee51ba39e
---

 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 3764d9e6ae..bae7b429c7 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" );



More information about the vlc-commits mailing list