From 6c2431b9f428d21b5219be97d07c7ce580a30983 Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Mon, 12 Jul 2010 21:39:31 +0200 Subject: fix: some problems --- src/interface.c | 4 ++-- src/pa-sink-ctl.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/interface.c b/src/interface.c index 8c1c8b6..403db0d 100644 --- a/src/interface.c +++ b/src/interface.c @@ -158,8 +158,8 @@ void get_input(void) case 32: -/* if (sink_input_list[chooser]->sink < sink_max) - sink = sink_input_list[chooser]->sink + 1; +/* if (chooser_sink < sink_counter - 1) + sink = chooser_sink + 1; else sink = 0; diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index f1ce215..b841535 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -119,7 +119,7 @@ void get_sink_info_callback(pa_context *c, const pa_sink_info *i, int is_last, v * is called after sink-input */ void get_sink_input_info_callback(pa_context *c, const pa_sink_input_info *i, int is_last, void *userdata) { - char t[32], k[32]; //,cv[PA_CVOLUME_SNPRINT_MAX]; + char t[32], k[32]; if (is_last < 0) { printf("Failed to get sink input information: %s\n", pa_strerror(pa_context_errno(c))); @@ -180,9 +180,8 @@ void quit(void) { */ void change_callback(pa_context* c, int success, void* userdate) { - // get information about sinks - pa_operation_unref(pa_context_get_sink_input_info_list(context, get_sink_input_info_callback, NULL)); + collect_all_info(); } void collect_all_info(void) { -- cgit