[vlc-devel] commit: [Qt] Win32: correctly open VIDEO_TS folders from open directory ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Tue Oct 21 16:59:34 CEST 2008
vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 21 16:56:41 2008 +0200| [d028a7a010f967735afa1cb9f1f450ed5f707378] | committer: Jean-Baptiste Kempf
[Qt] Win32: correctly open VIDEO_TS folders from open directory
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d028a7a010f967735afa1cb9f1f450ed5f707378
---
modules/gui/qt4/dialogs_provider.cpp | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 21802ad..e1e5968 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -423,11 +423,14 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
if (!dir.isEmpty() )
{
- 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) ),
+ QString dir2 ;
+ if( dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) )
+ dir2 = "dvd://" + dir;
+ else
+ dir2 = "directory://" + dir;
+
+ msg_Dbg( p_intf, "Directory opening: %s", qtu( dir2 ) );
+ input_item_t *p_input = input_item_NewExt( THEPL, qtu( dir2 ),
NULL, 0, NULL, -1 );
/* FIXME: playlist_AddInput() can fail */
More information about the vlc-devel
mailing list