[pulseaudio-commits] r1508 - in /branches/lennart/src/modules: module-null-sink.c module-pipe-sink.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Jul 12 09:15:36 PDT 2007
Author: lennart
Date: Thu Jul 12 18:15:35 2007
New Revision: 1508
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1508&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Properly initialize all revents on EINTR
Modified:
branches/lennart/src/modules/module-null-sink.c
branches/lennart/src/modules/module-pipe-sink.c
Modified: branches/lennart/src/modules/module-null-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-null-sink.c?rev=3D1508&root=3Dpulseaudio&r1=3D1507&r2=3D1508&view=3Ddi=
ff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=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-null-sink.c (original)
+++ branches/lennart/src/modules/module-null-sink.c Thu Jul 12 18:15:35 2007
@@ -175,8 +175,10 @@
pa_asyncmsgq_after_poll(u->asyncmsgq);
=
if (r < 0) {
- if (errno =3D=3D EINTR)
+ if (errno =3D=3D EINTR) {
+ pollfd.revents =3D 0;
continue;
+ }
=
pa_log("poll() failed: %s", pa_cstrerror(errno));
goto fail;
Modified: branches/lennart/src/modules/module-pipe-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/mo=
dule-pipe-sink.c?rev=3D1508&root=3Dpulseaudio&r1=3D1507&r2=3D1508&view=3Ddi=
ff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=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-pipe-sink.c (original)
+++ branches/lennart/src/modules/module-pipe-sink.c Thu Jul 12 18:15:35 2007
@@ -203,8 +203,11 @@
pa_asyncmsgq_after_poll(u->asyncmsgq);
=
if (r < 0) {
- if (errno =3D=3D EINTR)
+ if (errno =3D=3D EINTR) {
+ pollfd[POLLFD_ASYNCQ].revents =3D 0;
+ pollfd[POLLFD_FIFO].revents =3D 0;
continue;
+ }
=
pa_log("poll() failed: %s", pa_cstrerror(errno));
goto fail;
More information about the pulseaudio-commits
mailing list