]> code.delx.au - pulseaudio/commitdiff
fix esound sample cache names
authorLennart Poettering <lennart@poettering.net>
Sat, 13 May 2006 21:40:38 +0000 (21:40 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 May 2006 21:40:38 +0000 (21:40 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@856 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/polypcore/protocol-esound.c

index 7a6861fd55da3734c80075337e76e7230d5a62c4..56a113652564758b17cf9c70acdb7505c1da59e1 100644 (file)
@@ -680,6 +680,7 @@ static int esd_proto_sample_cache(struct connection *c, PA_GCC_UNUSED esd_proto_
 
     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 @@ static int esd_proto_sample_cache(struct connection *c, PA_GCC_UNUSED esd_proto_
     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);