[pulseaudio-discuss] [PATCH RFC 13/17] pstream: Duplicate assignment, write.data is always NULL

Peter Meerwald pmeerw at pmeerw.net
Fri Oct 24 14:21:37 PDT 2014


From: Peter Meerwald <p.meerwald at bct-electronic.com>

Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 src/pulsecore/pstream.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/pulsecore/pstream.c b/src/pulsecore/pstream.c
index 3a6b5f7..fd8f5d5 100644
--- a/src/pulsecore/pstream.c
+++ b/src/pulsecore/pstream.c
@@ -619,7 +619,6 @@ static void prepare_next_write_item(pa_pstream *p) {
             p->write.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH] = htonl((uint32_t) p->write.current->per_type.memblock_info.chunk.length);
             p->write.memchunk = p->write.current->per_type.memblock_info.chunk;
             pa_memblock_ref(p->write.memchunk.memblock);
-            p->write.data = NULL;
         }
 
         p->write.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS] = htonl(flags);
-- 
1.9.1



More information about the pulseaudio-discuss mailing list