]> code.delx.au - pulseaudio/blobdiff - polyp/pstream.c
latency work
[pulseaudio] / polyp / pstream.c
index ad3dd0e071608eaf90f9a56913637d2fb7314707..81ee0b439b65ab5a81d7377cad78a4dbb8522649 100644 (file)
@@ -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);