[MPlayer-dev-eng] [PATCH] EDL cleanup and fixes

Loren Merritt lorenm at u.washington.edu
Wed Nov 3 21:08:48 CET 2004


On Wed, 3 Nov 2004, Oded Shimon wrote:
> On Wednesday 03 November 2004 19:25, Reimar Döffinger wrote:
>>> +#ifdef USE_EDL
>>> +      user_muted = user_muted ? 0 : 1;
>>
>> user_muted = !user_muted;
>> seems much clearer to me...
> 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;

What version of C are you using where a boolean operator returns -1?

--Loren Merritt


More information about the MPlayer-dev-eng mailing list