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:
parent
5aeefb99ed
commit
2e1619c2fb
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user