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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux