[vlc-commits] Qt: fix subtitle path separator in open panel on windows
    Pierre Lamot 
    git at videolan.org
       
    Fri Mar 16 17:46:48 CET 2018
    
    
  
vlc/vlc-3.0 | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Mar 15 19:15:45 2018 +0100| [c1b51651ba6df0b6bc889ba7d68fe522124ddcff] | committer: Hugo Beauzée-Luyssen
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>
(cherry picked from commit 67ebc093d9a3c7011d8a6a3422c1616ee51ba39e)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=c1b51651ba6df0b6bc889ba7d68fe522124ddcff
---
 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" );
    
    
More information about the vlc-commits
mailing list