[pulseaudio-discuss] [PATCH] dbusiface-card: Use correct idxset when getting sources.
Juho Hämäläinen
juho.hamalainen at tieto.com
Mon Feb 10 02:46:28 PST 2014
This fixes get_sources() which iterates wrong idxset when
getting source object paths in GetSources or GetAll.
---
src/modules/dbus/iface-card.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
1.8.5.2
More information about the pulseaudio-discuss
mailing list