[vlc-commits] qt: fix subtitle path not encoded properly in open panel

Pierre Lamot git at videolan.org
Wed Mar 14 11:52:16 CET 2018


vlc/vlc-3.0 | branch: master | Pierre Lamot <pierre at videolabs.io> | Fri Mar  9 13:16:09 2018 +0100| [9ed4d71efb0d4e4e94a80f8f5b08c766326e9dcd] | 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 <hugo at beauzee.fr>
(cherry picked from commit 143b6e321dee1e9db131ac46b82457c546998854)
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=9ed4d71efb0d4e4e94a80f8f5b08c766326e9dcd
---

 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 cb720dc5e4..397f72cc2d 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" );



More information about the vlc-commits mailing list