mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-28 08:57:11 -05:00
Revert r1404 and keep it on a development branch until it is fully tested.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1409 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6ca819354c
commit
8dc6214276
36 changed files with 499 additions and 990 deletions
|
|
@ -2274,7 +2274,6 @@ static void pstream_memblock_callback(pa_pstream *p, uint32_t channel, int64_t o
|
|||
} else {
|
||||
struct upload_stream *u = (struct upload_stream*) stream;
|
||||
size_t l;
|
||||
|
||||
assert(u->type == UPLOAD_STREAM);
|
||||
|
||||
if (!u->memchunk.memblock) {
|
||||
|
|
@ -2294,18 +2293,9 @@ static void pstream_memblock_callback(pa_pstream *p, uint32_t channel, int64_t o
|
|||
if (l > chunk->length)
|
||||
l = chunk->length;
|
||||
|
||||
|
||||
if (l > 0) {
|
||||
void *src, *dst;
|
||||
dst = pa_memblock_acquire(u->memchunk.memblock);
|
||||
src = pa_memblock_acquire(chunk->memblock);
|
||||
|
||||
memcpy((uint8_t*) dst + u->memchunk.index + u->memchunk.length,
|
||||
(uint8_t*) src+chunk->index, l);
|
||||
|
||||
pa_memblock_release(u->memchunk.memblock);
|
||||
pa_memblock_release(chunk->memblock);
|
||||
|
||||
memcpy((uint8_t*) u->memchunk.memblock->data + u->memchunk.index + u->memchunk.length,
|
||||
(uint8_t*) chunk->memblock->data+chunk->index, l);
|
||||
u->memchunk.length += l;
|
||||
u->length -= l;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue