[vlc-devel] [PATCH] Fix for Ticket #4345

Jean-Baptiste Kempf jb at videolan.org
Sun Sep 16 18:53:40 CEST 2012


On Sun, Sep 16, 2012 at 12:08:03AM +0200, Vasily Fomin wrote :
> +            int delta = fileLine->text().length() - index;
> +            newFileName = fileLine->text().replace( index, delta, newFileExtension );

Won't work if extension size is not the same: mp3 vs mpeg for example.
Use left or another way to get a substring.

Best regards,

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



More information about the vlc-devel mailing list