Commit 2e1619c2 authored by Jean-Baptiste Kempf's avatar 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.
parent 5aeefb99
...@@ -420,8 +420,11 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go ) ...@@ -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 */
......
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