summaryrefslogtreecommitdiffstats
path: root/polyp/pstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/pstream.c')
-rw-r--r--polyp/pstream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/polyp/pstream.c b/polyp/pstream.c
index ad3dd0e0..81ee0b43 100644
--- a/polyp/pstream.c
+++ b/polyp/pstream.c
@@ -211,6 +211,8 @@ void pa_pstream_send_packet(struct pa_pstream*p, struct pa_packet *packet) {
struct item_info *i;
assert(p && packet);
+ /*fprintf(stderr, "push-packet %p\n", packet);*/
+
i = pa_xmalloc(sizeof(struct item_info));
i->type = PA_PSTREAM_ITEM_PACKET;
i->packet = pa_packet_ref(packet);
@@ -258,6 +260,8 @@ static void prepare_next_write_item(struct pa_pstream *p) {
p->write.index = 0;
if (p->write.current->type == PA_PSTREAM_ITEM_PACKET) {
+ /*fprintf(stderr, "pop-packet %p\n", p->write.current->packet);*/
+
assert(p->write.current->packet);
p->write.data = p->write.current->packet->data;
p->write.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH] = htonl(p->write.current->packet->length);