mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -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
|
|
@ -28,11 +28,14 @@ struct source* source_new(struct core *core, const char *name, const struct samp
|
|||
}
|
||||
|
||||
void source_free(struct source *s) {
|
||||
struct output_stream *o;
|
||||
struct output_stream *o, *j = NULL;
|
||||
assert(s);
|
||||
|
||||
while ((o = idxset_rrobin(s->output_streams, NULL)))
|
||||
while ((o = idxset_first(s->output_streams, NULL))) {
|
||||
assert(o != j);
|
||||
output_stream_free(o);
|
||||
j = o;
|
||||
}
|
||||
idxset_free(s->output_streams, NULL, NULL);
|
||||
|
||||
idxset_remove_by_data(s->core->sources, s, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue