]> code.delx.au - pulseaudio/blobdiff - src/protocol-native.c
esound protocol
[pulseaudio] / src / protocol-native.c
index b8a461ae64d8be31e518304c93ae396dca2806e2..9af438a9331d170e585a1ae422d8ad59e70ee035 100644 (file)
@@ -157,7 +157,7 @@ static void request_bytes(struct playback_stream *s) {
     tagstruct_putu32(t, l);
     pstream_send_tagstruct(s->connection->pstream, t);
 
-    fprintf(stderr, "Requesting %u bytes\n", l);
+/*    fprintf(stderr, "Requesting %u bytes\n", l);*/
 }
 
 /*** sinkinput callbacks ***/
@@ -327,7 +327,7 @@ static int memblock_callback(struct pstream *p, uint32_t channel, int32_t delta,
     assert(stream->sink_input);
     sink_notify(stream->sink_input->sink);
 
-    fprintf(stderr, "Recieved %u bytes.\n", chunk->length);
+    /*fprintf(stderr, "Recieved %u bytes.\n", chunk->length);*/
 
     return 0;
 }
@@ -384,6 +384,7 @@ struct protocol_native* protocol_native_new(struct core *core, struct socket_ser
     p->server = server;
     p->core = core;
     p->connections = idxset_new(NULL, NULL);
+    assert(p->connections);
 
     socket_server_set_callback(p->server, on_connection, p);