diff options
-rw-r--r-- | src/interface.c | 4 | ||||
-rw-r--r-- | src/pa-sink-ctl.c | 5 |
2 files changed, 4 insertions, 5 deletions
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) { |