[MPlayer-dev-eng] [RFC] defines for demux seek flags

Uoti Urpala uoti.urpala at pp1.inet.fi
Sat Jan 26 23:35:00 CET 2008


On Sat, 2008-01-26 at 23:28 +0100, Reimar Döffinger wrote:
> since it completely confuses me every time I'd like to add defines for
> the seek flags (absolute vs. relative and time- vs. percent-based).
> My suggestion is to add these to demuxer.h:
> #define DEMUXER_SEEKFLAG_RELATIVE (1 << 0)
> #define DEMUXER_SEEKFLAG_PERCENT  (1 << 1)
> 
> Better ideas? Objections?

Make the flags variable a struct with bitfields so you can have sane
syntax like "flags.relative" instead of bit arithmetic with 25 character
define names.




More information about the MPlayer-dev-eng mailing list