[vlc-commits] Qt: allow opening of BDMV hierarchies through open folder

Jean-Baptiste Kempf git at videolan.org
Mon Jan 2 23:12:53 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan  2 23:11:41 2012 +0100| [28f37b5fd35dc12a477a67796978eb9e852d3451] | committer: Jean-Baptiste Kempf

Qt: allow opening of BDMV hierarchies through open folder

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

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

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index e647f14..45429cd 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -511,6 +511,11 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
     const char *scheme = "directory";
     if( dir.endsWith( "/VIDEO_TS", Qt::CaseInsensitive ) )
         scheme = "dvd";
+    else if( dir.endsWith( "/BDMV", Qt::CaseInsensitive ) )
+    {
+        scheme = "bluray";
+        dir.remove( "BDMV" );
+    }
 
     char *uri = make_URI( qtu( toNativeSeparators( dir ) ), scheme );
     if( unlikely(uri == NULL) )



More information about the vlc-commits mailing list