mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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
This commit is contained in:
parent
8c6593dabf
commit
6e019795bf
27 changed files with 426 additions and 132 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue