[Mplayer-cvslog] CVS: main playtreeparser.c,1.11,1.12

Felix Buenemann atmosfear at users.sourceforge.net
Mon Jul 8 02:57:27 CEST 2002


On Sunday 07 July 2002 06:00, Alban Bedel CVS wrote:
> Modified Files:
>         playtreeparser.c
> Log Message:
> Relative filename in playlist are now relative to the playlist path
>

> +
> +#if defined(__CYGWIN__) || defined(__OS2__)
> +#define PATH_SEP '\\'
> +#else
> +#define PATH_SEP '/'
> +#endif
hmm, how about supporting both \ and / as path seperators for dos and unix?
playlist are unlikely to contain escaped characters and if you disagree one 
could tell the difference between an escaped char and a dir seperator by 
doing some checks.

Of course when on unix all \ need to be rewritten to / in order to make the 
playlists work, this would be a nice feature.

On win / will work anyways (windows or especially cygwin) should be able to 
handle both, but for safety the opposite conversion could be done.

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-cvslog mailing list