[pulseaudio-commits] r1507 - /branches/lennart/src/modules/module-oss.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Jul 12 09:00:53 PDT 2007
Author: lennart
Date: Thu Jul 12 18:00:51 2007
New Revision: 1507
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1507&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Make sure pollfd[POLLFD_ASYNCQ].revents is properly initialized on signal
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=3D1507&root=3Dpulseaudio&r1=3D1506&r2=3D1507&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 18:00:51 2007
@@ -142,6 +142,8 @@
ioctl(u->fd, SNDCTL_DSP_SYNC, NULL);
close(u->fd);
u->fd =3D -1;
+
+ pa_log_debug("Device suspended...");
=
return 0;
}
@@ -207,6 +209,8 @@
pa_read(u->fd, buf, u->sample_size, NULL);
pa_xfree(buf);
}
+
+ pa_log_debug("Resumed successfully...");
=
return 0;
=
@@ -610,8 +614,11 @@
pollfd[POLLFD_DSP].revents =3D 0;
=
if (r < 0) {
- if (errno =3D=3D EINTR)
+ if (errno =3D=3D EINTR) {
+ pollfd[POLLFD_ASYNCQ].revents =3D 0;
+ pollfd[POLLFD_DSP].revents =3D 0;
continue;
+ }
=
pa_log("poll() failed: %s", pa_cstrerror(errno));
goto fail;
More information about the pulseaudio-commits
mailing list