mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
dbus: Use correct idxset when getting sources
This fixes get_sources() which iterates wrong idxset when getting source object paths in GetSources or GetAll.
This commit is contained in:
parent
3cc4765d16
commit
6021ce3196
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ static const char **get_sources(pa_dbusiface_card *c, unsigned *n) {
|
|||
|
||||
sources = pa_xnew(const char *, *n);
|
||||
|
||||
PA_IDXSET_FOREACH(source, c->card->sinks, idx) {
|
||||
PA_IDXSET_FOREACH(source, c->card->sources, idx) {
|
||||
sources[i] = pa_dbusiface_core_get_source_path(c->core, source);
|
||||
++i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue