Commit 2e1619c2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

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

This should close #2167. But must be checked for extra "/" on windows.
parent 5aeefb99
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment