]> code.delx.au - pulseaudio/commitdiff
dbus: Use correct idxset when getting sources
authorJuho Hämäläinen <juho.hamalainen@tieto.com>
Mon, 10 Feb 2014 10:46:28 +0000 (12:46 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 11 Feb 2014 10:02:28 +0000 (12:02 +0200)
This fixes get_sources() which iterates wrong idxset when
getting source object paths in GetSources or GetAll.

src/modules/dbus/iface-card.c

index b77a5e4958218d6f6489d1b1d7f3b280760bf130..2d46154b551d57795e09d90a21e0720da7334b37 100644 (file)
@@ -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;
     }