vlc | branch: master | Pierre Lamot <[email protected]> | Fri Mar  9 13:16:09 
2018 +0100| [143b6e321dee1e9db131ac46b82457c546998854] | committer: Hugo 
Beauzée-Luyssen

qt: fix subtitle path not encoded properly in open panel

:sub-file doesn't accept URL

Signed-off-by: Hugo Beauzée-Luyssen <[email protected]>

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

 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 322bde9a89..3764d9e6ae 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.toEncoded() ) );
+        mrl.append( " :sub-file=" + colon_escape( subUrl.toLocalFile() ) );
     }
 
     emit methodChanged( "file-caching" );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to