[pulseaudio-commits] r1166 - /trunk/src/pulsecore/memblockq.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Jul 29 08:03:27 PDT 2006
Author: lennart
Date: Sat Jul 29 17:03:26 2006
New Revision: 1166
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1166&root=pulseaudio&view=rev
Log:
if the memblockq is empty, return -1 in all cases
Modified:
trunk/src/pulsecore/memblockq.c
Modified: trunk/src/pulsecore/memblockq.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/memblockq.c?rev=1166&root=pulseaudio&r1=1165&r2=1166&view=diff
==============================================================================
--- trunk/src/pulsecore/memblockq.c (original)
+++ trunk/src/pulsecore/memblockq.c Sat Jul 29 17:03:26 2006
@@ -368,6 +368,12 @@
chunk->length = length;
} else {
+
+ /* If the memblockq is empty, return -1, otherwise return
+ * the time to sleep */
+ if (!bq->blocks)
+ return -1;
+
chunk->memblock = NULL;
chunk->length = length;
}
More information about the pulseaudio-commits
mailing list