[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
Tue Oct 21 09:38:41 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 17 19:49:17 2008 +0200| [bd3ccc9323cf62d88fea485b182a5e3bc21b57bb] | 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.
(cherry picked from commit 2e1619c2fbebd91e996c6d7e5ee776e80f22cbaf)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 e57b6eb..21802ad 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -423,8 +423,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