[polypaudio-commits] r856 - /trunk/src/polypcore/protocol-esound.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat May 13 14:40:38 PDT 2006
Author: lennart
Date: Sat May 13 23:40:38 2006
New Revision: 856
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=856&root=polypaudio&view=rev
Log:
fix esound sample cache names
Modified:
trunk/src/polypcore/protocol-esound.c
Modified: trunk/src/polypcore/protocol-esound.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/protocol-esound.c?rev=856&root=polypaudio&r1=855&r2=856&view=diff
==============================================================================
--- trunk/src/polypcore/protocol-esound.c (original)
+++ trunk/src/polypcore/protocol-esound.c Sat May 13 23:40:38 2006
@@ -680,6 +680,7 @@
memcpy(&sc_length, data, sizeof(int32_t));
sc_length = MAYBE_INT32_SWAP(c->swap_byte_order, sc_length);
+ data = (const char*)data + sizeof(int32_t);
CHECK_VALIDITY(sc_length <= MAX_CACHE_SAMPLE_SIZE, "Sample too large.");
@@ -694,7 +695,7 @@
c->scache.sample_spec = ss;
assert(!c->scache.name);
c->scache.name = pa_xstrdup(name);
-
+
c->state = ESD_CACHING_SAMPLE;
pa_scache_add_item(c->protocol->core, c->scache.name, NULL, NULL, NULL, &idx);
More information about the pulseaudio-commits
mailing list