[vlc-devel] [vlc-commits] Qt: fix folder opening of DVD and BD on Windows

Jean-Baptiste Kempf jb at videolan.org
Mon Jan 20 07:39:56 CET 2014


On 20 Jan, Rémi Denis-Courmont wrote :
> 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.

I'm not sure I agree with you.

But fixed, since it's better.


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list