[pulseaudio-commits] r1513 - /branches/lennart/src/pulsecore/sink.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Jul 13 05:11:20 PDT 2007


Author: lennart
Date: Fri Jul 13 14:11:19 2007
New Revision: 1513

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1513&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Fix off-by-one in mixing code

Modified:
    branches/lennart/src/pulsecore/sink.c

Modified: branches/lennart/src/pulsecore/sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
sink.c?rev=3D1513&root=3Dpulseaudio&r1=3D1512&r2=3D1513&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/sink.c (original)
+++ branches/lennart/src/pulsecore/sink.c Fri Jul 13 14:11:19 2007
@@ -320,7 +320,8 @@
                 break;
             }
 =

-            if (++p > n)
+            p++;
+            if (p >=3D n)
                 p =3D 0;
         }
 =





More information about the pulseaudio-commits mailing list