summaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-19 09:12:29 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-19 09:12:29 +0100
commit6052d2762d0ac8d76e11e2126f51f33e5fe5a6b7 (patch)
tree87ac1ba5e253dd2147f52818157bacad8f67e514 /src/command.c
parente9f4a40262232e5687711c6325421cfd4c69065f (diff)
downloadpa-sink-ctl-6052d2762d0ac8d76e11e2126f51f33e5fe5a6b7.tar.gz
pa-sink-ctl-6052d2762d0ac8d76e11e2126f51f33e5fe5a6b7.tar.bz2
pa-sink-ctl-6052d2762d0ac8d76e11e2126f51f33e5fe5a6b7.zip
Let sinks & sources and sink_inputs & source_outputs use same types
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
1 files changed, 3 insertions, 3 deletions
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;
}
}