]> git.sesse.net Git - vlc/commitdiff
Qt: use DIR_SEP for BDMV and VIDEO_TS detection
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 20 Jan 2014 06:38:27 +0000 (07:38 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 20 Jan 2014 06:38:27 +0000 (07:38 +0100)
modules/gui/qt4/dialogs_provider.cpp

index 71d511a2c0ae43f64991b656ea6edb45daa6311d..91055e92e78567af0b35575b7f7687f48147e8f8 100644 (file)
@@ -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" );