[pulseaudio-commits] r1781 - /branches/lennart/src/modules/module-pipe-sink.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Sep 10 04:33:48 PDT 2007
Author: ossman
Date: Mon Sep 10 13:33:47 2007
New Revision: 1781
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1781&root=pulseaudio&view=rev
Log:
TIOCINQ isn't present on all systems.
Modified:
branches/lennart/src/modules/module-pipe-sink.c
Modified: branches/lennart/src/modules/module-pipe-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/module-pipe-sink.c?rev=1781&root=pulseaudio&r1=1780&r2=1781&view=diff
==============================================================================
--- branches/lennart/src/modules/module-pipe-sink.c (original)
+++ branches/lennart/src/modules/module-pipe-sink.c Mon Sep 10 13:33:47 2007
@@ -98,9 +98,11 @@
case PA_SINK_MESSAGE_GET_LATENCY: {
size_t n = 0;
int l;
-
+
+#ifdef TIOCINQ
if (ioctl(u->fd, TIOCINQ, &l) >= 0 && l > 0)
n = (size_t) l;
+#endif
n += u->memchunk.length;
More information about the pulseaudio-commits
mailing list