From 9e48ce1c7b87157921ce9dd695866073a8401899 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 15 Dec 2011 13:37:18 +0100 Subject: Fix incorrect priority matching comparison --- src/pa-sink-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index dbd6d19..0ec72ab 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -41,7 +41,7 @@ get_sink_priority(struct context *ctx, const pa_sink_info *sink_info) list_foreach(ctx->config.priorities, p) if (g_strcmp0(pa_proplist_gets(sink_info->proplist, p->match), - p->value)) + p->value) == 0) return p->priority; return 0; -- cgit