[MPlayer-dev-eng] [PATCH] path seperator makeover
Sascha Sommer
saschasommer at freenet.de
Thu Aug 12 18:31:15 CEST 2004
On Thursday 12 August 2004 00:04, Joey Parrish wrote:
> Hello,
>
> I'm releasing new cygwin packages soon, so time for another round of
> hopefully useful patches. :)
>
> Attached is a patch to alter the way paths are handled in MPlayer. This
> patch allows both unix-style paths and a variety of windows-style paths
> in playlist code. The current way is to have playlist code look for
> PATH_SEP which is defined to either / or \. And mplayer.c's mp_basename
> macro only looked for /, as well.
>
> The problem is that cygwin systems can handle unix or windows paths at
> once. So why choose one or the other at compile time?
>
> mp_basename now finds either / or \.
> Playlist basename code now does this:
> sees /path/to/file as a full path
> sees c:\windows as a full path
> sees \windows as a near-full path (and prepends playlist drive letter)
> sees file.avi as a relative path (and prepends path to playlist)
>
> This should not change anything under linux.
> Please test, comment, or say "commit".
>
Commit.
Sascha
More information about the MPlayer-dev-eng
mailing list