[MPlayer-dev-eng] [PATCH] processing "file:///" URL (resending)
Nico Sabbi
nsabbi at tiscali.it
Fri May 13 23:27:06 CEST 2005
Nico Sabbi wrote:
>
>
> the current stream API provides a mechanism to access urls: in
> stream_file.c
> there's this initilizer
>
> stream_info_t stream_info_file = {
> "File",
> "file",
> "Albeu",
> "based on the code from ??? (probably Arpi)",
> open_f,
> { "file", "", NULL },
> &stream_opts,
> 1 // Urls are an option string
> };
>
> that provides a way to access a file using file:// syntax, but it's
> not working.
> This means there's a bug to fix properly in the stream driver
the attached patch fixes your problem, although, because of the design
of the url syntax
(where the third / delimitates a hostname field), you have to use the
syntaxes:
file:///absolute_path_to_file
or
file://./file
If no one objects I will commit the patch tomorrow.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.diff
Type: text/x-patch
Size: 1413 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050513/4859aee6/attachment.bin>
More information about the MPlayer-dev-eng
mailing list