From 6052d2762d0ac8d76e11e2126f51f33e5fe5a6b7 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 19 Dec 2011 09:12:29 +0100 Subject: Let sinks & sources and sink_inputs & source_outputs use same types --- src/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index a883685..c410832 100644 --- a/src/command.c +++ b/src/command.c @@ -41,7 +41,7 @@ static void up(struct context *ctx, int key) { struct interface *ifc = &ctx->interface; - struct sink *sink = NULL; + struct main_ctl *sink = NULL; if (!ctx->context_ready) return; @@ -153,7 +153,7 @@ static void switch_sink(struct context *ctx, int key) { struct interface *ifc = &ctx->interface; - struct sink_input *t; + struct slave_ctl *t; struct vol_ctl *input, *sink; pa_operation *o; gint i; @@ -189,7 +189,7 @@ switch_sink(struct context *ctx, int key) ifc->chooser_input = ++i; break; } - if (t->sink == sink->index) + if (t->parent_index == sink->index) ++i; } } -- cgit