[Mplayer-cvslog] CVS: main/libao2 ao_mpegpes.c,1.11,1.12 ao_null.c,1.8,1.9 ao_oss.c,1.30,1.31 ao_plugin.c,1.20,1.21 pl_delay.c,1.5,1.6 pl_resample.c,1.7,1.8

Kim Minh Kaplan kmkaplan at selfoffice.com
Sun Sep 22 14:08:45 CEST 2002


Alex Beregszaszi writes:

>> -      for(x=i;x<npl,plugin(x+1);x++) plugin(x)=plugin(x+1);
>> +      for(x=i;x<npl && plugin(x+1);x++) plugin(x)=plugin(x+1);
>
> hey, x<npl,plugin(x+1) is right too

No, the comma operator executes its left operand and *discards* the
resulting value, then it executes its right operand and returns this
value as a result.  So when you use it, the left operand should make a
side effect; otherwise it is nonsense.  This is quite different from a
logical and.

Kim Minh.



More information about the MPlayer-cvslog mailing list