1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

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

This should close #2167. But must be checked for extra "/" on windows.
This commit is contained in:
Jean-Baptiste Kempf 2008-10-17 19:49:17 +02:00
parent 5aeefb99ed
commit 2e1619c2fb

View File

@ -420,8 +420,11 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
if (!dir.isEmpty() ) if (!dir.isEmpty() )
{ {
input_item_t *p_input = input_item_NewExt( THEPL, msg_Dbg( p_intf, "Directory opening: %s", qtu( dir ) );
qtu( "directory://" + toNativeSeparators(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 ); NULL, 0, NULL, -1 );
/* FIXME: playlist_AddInput() can fail */ /* FIXME: playlist_AddInput() can fail */