[vlc-commits] Qt: use DIR_SEP for BDMV and VIDEO_TS detection

Jean-Baptiste Kempf git at videolan.org
Mon Jan 20 07:38:56 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 20 07:38:27 2014 +0100| [5981a203198707ac198c7866cbddd3003ccd51ec] | committer: Jean-Baptiste Kempf

Qt: use DIR_SEP for BDMV and VIDEO_TS detection

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

 modules/gui/qt4/dialogs_provider.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 71d511a..91055e9 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -504,9 +504,9 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
     p_intf->p_sys->filepath = dir;
 
     const char *scheme = "directory";
-    if( dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) )
+    if( dir.endsWith( DIR_SEP "VIDEO_TS", Qt::CaseInsensitive ) )
         scheme = "dvd";
-    else if( dir.endsWith( "BDMV", Qt::CaseInsensitive ) )
+    else if( dir.endsWith( DIR_SEP "BDMV", Qt::CaseInsensitive ) )
     {
         scheme = "bluray";
         dir.remove( "BDMV" );
@@ -539,9 +539,9 @@ QString DialogsProvider::getDirectoryDialog()
     p_intf->p_sys->filepath = dir;
 
     const char *scheme = "directory";
-    if( dir.endsWith( "/VIDEO_TS", Qt::CaseInsensitive ) )
+    if( dir.endsWith( DIR_SEP "VIDEO_TS", Qt::CaseInsensitive ) )
         scheme = "dvd";
-    else if( dir.endsWith( "/BDMV", Qt::CaseInsensitive ) )
+    else if( dir.endsWith( DIR_SEP "BDMV", Qt::CaseInsensitive ) )
     {
         scheme = "bluray";
         dir.remove( "BDMV" );



More information about the vlc-commits mailing list