[vlc-commits] Fix opening of subtitles on Windows

Jean-Baptiste Kempf git at videolan.org
Tue Apr 26 01:46:47 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 26 01:45:41 2011 +0200| [d6c4c271cc9b1629657cfad0fd3149d5be33e26f] | committer: Jean-Baptiste Kempf

Fix opening of subtitles on Windows

Close #4296

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

 modules/gui/qt4/dialogs_provider.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 690adf6..31f7826 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -681,7 +681,7 @@ void DialogsProvider::loadSubtitlesFile()
     input_item_t *p_item = input_GetItem( p_input );
     if( !p_item ) return;
 
-    char *path = input_item_GetURI( p_item );
+    char *path = make_path( input_item_GetURI( p_item ) );
     if( !path ) path = strdup( "" );
 
     char *sep = strrchr( path, DIR_SEP_CHAR );



More information about the vlc-commits mailing list