[pulseaudio-commits] r1397 - /trunk/src/utils/padsp.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Sep 14 09:01:00 PDT 2006


Author: ossman
Date: Thu Sep 14 18:00:57 2006
New Revision: 1397

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1397&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Stop using x86-isms and use ISO C (oversized shifts are undefined).

Modified:
    trunk/src/utils/padsp.c

Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=3D1=
397&root=3Dpulseaudio&r1=3D1396&r2=3D1397&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
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Thu Sep 14 18:00:57 2006
@@ -1879,7 +1879,7 @@
             =

             pa_threaded_mainloop_lock(i->mainloop);
             =

-            i->fragment_size =3D 1 << (*(int*) argp);
+            i->fragment_size =3D 1 << ((*(int*) argp) & 31);
             i->n_fragments =3D (*(int*) argp) >> 16;
 =

             /* 0x7FFF means that we can set whatever we like */




More information about the pulseaudio-commits mailing list