[pulseaudio-discuss] [PATCH] dbusiface-card: Use correct idxset when getting sources.

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Tue Feb 11 02:04:04 PST 2014


On Mon, 2014-02-10 at 12:46 +0200, Juho Hämäläinen wrote:
> 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;
>      }

Thanks, applied!

-- 
Tanu



More information about the pulseaudio-discuss mailing list