[pulseaudio-commits] r2488 - /trunk/src/pulsecore/protocol-esound.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue May 27 15:05:32 PDT 2008
Author: lennart
Date: Wed May 28 00:05:31 2008
New Revision: 2488
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2488&root=pulseaudio&view=rev
Log:
fix esound proto to not crash
Modified:
trunk/src/pulsecore/protocol-esound.c
Modified: trunk/src/pulsecore/protocol-esound.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/protocol-esound.c?rev=2488&root=pulseaudio&r1=2487&r2=2488&view=diff
==============================================================================
--- trunk/src/pulsecore/protocol-esound.c (original)
+++ trunk/src/pulsecore/protocol-esound.c Wed May 28 00:05:31 2008
@@ -1042,7 +1042,7 @@
}
if (!c->playback.current_memblock) {
- pa_assert_se(c->playback.current_memblock = pa_memblock_new(c->protocol->core->mempool, 0));
+ pa_assert_se(c->playback.current_memblock = pa_memblock_new(c->protocol->core->mempool, (size_t) -1));
c->playback.memblock_index = 0;
space = pa_memblock_get_length(c->playback.current_memblock);
@@ -1274,6 +1274,8 @@
return -1;
} else {
size_t m;
+
+ chunk->length = PA_MIN(length, chunk->length);
c->playback.underrun = FALSE;
More information about the pulseaudio-commits
mailing list