[vlc-devel] [patch] [LUA HTTP] adding file:// to the Input field
esaule at bmi.osu.edu
Tue Feb 22 14:10:10 CET 2011
On Tue, Feb 22, 2011 at 09:08:44AM +0100, Rémi Denis-Courmont wrote:
> On Tue, 22 Feb 2011 01:17:21 -0500, Erik Saule <esaule at bmi.osu.edu> wrote:
> > I encountered a bug while using vlc through the lua http
> > interface. After selecting a file in the local filesystem, the path to
> > the file is copied to the "Input" field. However, this does not allow
> > to play the file directly: one must add manually "file://" to make the
> > string a valid MRL.
> Assuming the path is absolute, it's not as simple as prepending "file://".
> A few counter examples:
> "/home/user/My Music/Track #1.flac"
> -> "file:///home/user/My%20Music/Track%20%231.flac"
> "E:\My Music"
> -> "file:///E:/My%20Music"
> So I very much doubt that this patch is correct.
Do you mean that spaces in the name would be an issue ? I just tried
with a file name "/home/erik/tst/foo foo.ogv", the verbose option of
vlc indicates it tries to read:
[0x19d4620] main input debug: Creating an input for 'file:///home/erik/tst/foo foo.ogv'
and the file plays correctly.
Am I missing your point ?
More information about the vlc-devel