[vlc-devel] [vlc-commits] Qt: fix folder opening of DVD and BD on Windows
Rémi Denis-Courmont
remi at remlab.net
Mon Jan 20 03:22:43 CET 2014
On Sun, 19 Jan 2014 19:00:02 +0100 (CET), git at videolan.org (Jean-Baptiste
Kempf) wrote:
> diff --git a/modules/gui/qt4/dialogs_provider.cpp
> b/modules/gui/qt4/dialogs_provider.cpp
> index cc68160..71d511a 100644
> --- a/modules/gui/qt4/dialogs_provider.cpp
> +++ b/modules/gui/qt4/dialogs_provider.cpp
> @@ -504,9 +504,9 @@ static void openDirectory( intf_thread_t *p_intf,
bool
> pl, bool go )
> p_intf->p_sys->filepath = dir;
>
> const char *scheme = "directory";
> - if( dir.endsWith( "/VIDEO_TS", Qt::CaseInsensitive ) )
> + if( dir.endsWith( "VIDEO_TS", Qt::CaseInsensitive ) )
> scheme = "dvd";
> - else if( dir.endsWith( "/BDMV", Qt::CaseInsensitive ) )
> + else if( dir.endsWith( "BDMV", Qt::CaseInsensitive ) )
Dropping the DIR_SEP is obviously wrong.
--
Rémi Denis-Courmont
Sent from my collocated server
More information about the vlc-devel
mailing list