[pulseaudio-commits] src/modules

Tanu Kaskinen tanuk at kemper.freedesktop.org
Tue Feb 11 02:02:54 PST 2014


 src/modules/dbus/iface-card.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6021ce31968b4fef5f0a0c86a144919fd0a02650
Author: Juho Hämäläinen <juho.hamalainen at tieto.com>
Date:   Mon Feb 10 12:46:28 2014 +0200

    dbus: Use correct idxset when getting sources
    
    This fixes get_sources() which iterates wrong idxset when
    getting source object paths in GetSources or GetAll.

diff --git a/src/modules/dbus/iface-card.c b/src/modules/dbus/iface-card.c
index b77a5e4..2d46154 100644
--- a/src/modules/dbus/iface-card.c
+++ b/src/modules/dbus/iface-card.c
@@ -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;
     }



More information about the pulseaudio-commits mailing list