[vlc-devel] commit: [Qt] When opening a VIDEO_TS folder, use dvd:// and not directory:/ / (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Oct 17 19:51:06 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 17 19:49:17 2008 +0200| [2e1619c2fbebd91e996c6d7e5ee776e80f22cbaf] | committer: Jean-Baptiste Kempf 

[Qt] When opening a VIDEO_TS folder, use dvd:// and not directory://

This should close #2167. But must be checked for extra "/" on windows.

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

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

diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 5a6fef4..27dcf6e 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -420,8 +420,11 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
 
     if (!dir.isEmpty() )
     {
-        input_item_t *p_input = input_item_NewExt( THEPL,
-                              qtu( "directory://" + toNativeSeparators(dir) ),
+        msg_Dbg( p_intf, "Directory opening: %s", qtu( dir ) );
+        input_item_t *p_input = input_item_NewExt( THEPL, qtu(
+                dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ? "dvd://"
+                                                                :"directory://"
+                                          + toNativeSeparators(dir) ),
                               NULL, 0, NULL, -1 );
 
         /* FIXME: playlist_AddInput() can fail */




More information about the vlc-devel mailing list