[MPlayer-dev-eng] [PATCH] EDL cleanup and fixes
D Richard Felker III
dalias at aerifal.cx
Thu Nov 4 18:27:33 CET 2004
On Thu, Nov 04, 2004 at 04:07:30PM +0100, Reimar D?nger wrote:
> Hi,
> > > I agree, it is clearer, and i personally love that little trick. :)
> > > but it doesn't work here, I need to work with either 1 or 0, not -1 or 0,
> > > because it is compared mixer.muted, which i didn't invent, and it uses 1 or
> > > 0.
> > > I could use
> > > user_muted = !user_muted & 1;
> >
> > No, I don't prefer it. But for boolean variable, != is the wrong operator anyway, ^ (boolean xor) would be right afaik.
>
> Sorry, messed it up again. ^ is bitwise xor... Hmm... is there really no boolean xor or comparison in C???
wtf?? !user_muted will be 0 or 1. wtf is the &1 for??? this is c, not BASIC!
rich
More information about the MPlayer-dev-eng
mailing list