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:
Juho Hämäläinen 2014-02-10 12:46:28 +02:00 committed by Tanu Kaskinen
parent 3cc4765d16
commit 6021ce3196

View file

@ -243,7 +243,7 @@ static const char **get_sources(pa_dbusiface_card *c, unsigned *n) {
sources = pa_xnew(const char *, *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); sources[i] = pa_dbusiface_core_get_source_path(c->core, source);
++i; ++i;
} }