mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
more cleanups
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@11 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c8cf0c1ce9
commit
5ce204829f
13 changed files with 162 additions and 39 deletions
|
|
@ -40,11 +40,14 @@ struct sink* sink_new(struct core *core, const char *name, const struct sample_s
|
|||
}
|
||||
|
||||
void sink_free(struct sink *s) {
|
||||
struct input_stream *i;
|
||||
struct input_stream *i, *j = NULL;
|
||||
assert(s);
|
||||
|
||||
while ((i = idxset_rrobin(s->input_streams, NULL)))
|
||||
input_stream_free(i);
|
||||
while ((i = idxset_first(s->input_streams, NULL))) {
|
||||
assert(i != j);
|
||||
input_stream_kill(i);
|
||||
j = i;
|
||||
}
|
||||
idxset_free(s->input_streams, NULL, NULL);
|
||||
|
||||
idxset_remove_by_data(s->core->sinks, s, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue