Commit 8bcb2f3c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix opening of VIDEO_TS folders from main menu

parent c8962190
...@@ -481,8 +481,9 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go ) ...@@ -481,8 +481,9 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
if (!dir.isEmpty() ) if (!dir.isEmpty() )
{ {
QString mrl = dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ? QString mrl = (dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) ?
"dvd://" : "directory://" + toNativeSeparators( dir ); "dvd://" : "directory://")
+ toNativeSeparators( dir );
input_item_t *p_input = input_item_New( THEPL, qtu( mrl ), NULL ); input_item_t *p_input = input_item_New( THEPL, qtu( mrl ), NULL );
/* 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