[pulseaudio-commits] r1727 - /branches/lennart/src/pulsecore/fdsem.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Aug 30 15:40:11 PDT 2007
Author: lennart
Date: Fri Aug 31 00:40:11 2007
New Revision: 1727
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1727&root=3Dpulseaudio&vi=
ew=3Drev
Log:
add an assert()
Modified:
branches/lennart/src/pulsecore/fdsem.c
Modified: branches/lennart/src/pulsecore/fdsem.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
fdsem.c?rev=3D1727&root=3Dpulseaudio&r1=3D1726&r2=3D1727&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/fdsem.c (original)
+++ branches/lennart/src/pulsecore/fdsem.c Fri Aug 31 00:40:11 2007
@@ -137,7 +137,7 @@
pa_atomic_sub(&f->in_pipe, r);
}
=
- pa_atomic_dec(&f->waiting);
+ pa_assert_se(pa_atomic_dec(&f->waiting) >=3D 1);
}
=
int pa_fdsem_try(pa_fdsem *f) {
More information about the pulseaudio-commits
mailing list