[pulseaudio-commits] r1506 - /branches/lennart/src/modules/module-oss.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Jul 12 08:40:30 PDT 2007


Author: lennart
Date: Thu Jul 12 17:40:29 2007
New Revision: 1506

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1506&root=3Dpulseaudio&vi=
ew=3Drev
Log:
fix segfault when recording with module-oss.c

Modified:
    branches/lennart/src/modules/module-oss.c

Modified: branches/lennart/src/modules/module-oss.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-oss.c?rev=3D1506&root=3Dpulseaudio&r1=3D1505&r2=3D1506&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/modules/module-oss.c (original)
+++ branches/lennart/src/modules/module-oss.c Thu Jul 12 17:40:29 2007
@@ -324,7 +324,7 @@
                     pa_log_info("Device doesn't support SNDCTL_DSP_GETISPA=
CE: %s", pa_cstrerror(errno));
                     u->use_getispace =3D 0;
                 } else
-                    r =3D pa_bytes_to_usec(info.bytes, &u->sink->sample_sp=
ec);
+                    r =3D pa_bytes_to_usec(info.bytes, &u->source->sample_=
spec);
             }
 =

             *((pa_usec_t*) data) =3D r;




More information about the pulseaudio-commits mailing list