[pulseaudio-commits] r2408 - /branches/coling/airtunes/src/modules/module-raop-sink.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sun May 11 08:43:57 PDT 2008
Author: coling
Date: Sun May 11 17:43:56 2008
New Revision: 2408
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2408&root=pulseaudio&view=rev
Log:
unref the raw data memblock before requesting more data.
Modified:
branches/coling/airtunes/src/modules/module-raop-sink.c
Modified: branches/coling/airtunes/src/modules/module-raop-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/coling/airtunes/src/modules/module-raop-sink.c?rev=2408&root=pulseaudio&r1=2407&r2=2408&view=diff
==============================================================================
--- branches/coling/airtunes/src/modules/module-raop-sink.c (original)
+++ branches/coling/airtunes/src/modules/module-raop-sink.c Sun May 11 17:43:56 2008
@@ -217,6 +217,10 @@
void *p;
if (u->raw_memchunk.length <= 0) {
+ if (u->raw_memchunk.memblock)
+ pa_memblock_unref(u->raw_memchunk.memblock);
+ pa_memchunk_reset(&u->raw_memchunk);
+
/* Grab unencoded data */
pa_sink_render(u->sink, u->block_size, &u->raw_memchunk);
}
More information about the pulseaudio-commits
mailing list