summaryrefslogtreecommitdiffstats
path: root/polyp/protocol-native.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-14 20:53:25 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-14 20:53:25 +0000
commit6e019795bff589ef0a867772975e34da78fffefb (patch)
tree46beb189b4048d516d92f6002f91135360342334 /polyp/protocol-native.c
parent8c6593dabf3253e20fead143855267570a403c9a (diff)
add refernce counting for sinks, sources, sink-inputs and source-outputs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@200 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/protocol-native.c')
-rw-r--r--polyp/protocol-native.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/polyp/protocol-native.c b/polyp/protocol-native.c
index c1b19760..29821b6c 100644
--- a/polyp/protocol-native.c
+++ b/polyp/protocol-native.c
@@ -255,7 +255,8 @@ static void record_stream_free(struct record_stream* r) {
assert(r && r->connection);
pa_idxset_remove_by_data(r->connection->record_streams, r, NULL);
- pa_source_output_free(r->source_output);
+ pa_source_output_disconnect(r->source_output);
+ pa_source_output_unref(r->source_output);
pa_memblockq_free(r->memblockq);
pa_xfree(r);
}
@@ -302,7 +303,8 @@ static void playback_stream_free(struct playback_stream* p) {
pa_pstream_send_error(p->connection->pstream, p->drain_tag, PA_ERROR_NOENTITY);
pa_idxset_remove_by_data(p->connection->output_streams, p, NULL);
- pa_sink_input_free(p->sink_input);
+ pa_sink_input_disconnect(p->sink_input);
+ pa_sink_input_unref(p->sink_input);
pa_memblockq_free(p->memblockq);
pa_xfree(p);
}