diff options
author | Jan Klemkow <web2p10@wemelug.de> | 2010-07-12 21:39:31 +0200 |
---|---|---|
committer | Jan Klemkow <web2p10@wemelug.de> | 2010-07-12 21:39:31 +0200 |
commit | 6c2431b9f428d21b5219be97d07c7ce580a30983 (patch) | |
tree | 4a954db9ac4f6bdfdc1d487e8db4464c45503aa1 | |
parent | 9bf6d50010991bfe42465ab0b8cf298bad698d49 (diff) | |
download | pa-sink-ctl-6c2431b9f428d21b5219be97d07c7ce580a30983.tar.gz pa-sink-ctl-6c2431b9f428d21b5219be97d07c7ce580a30983.tar.bz2 pa-sink-ctl-6c2431b9f428d21b5219be97d07c7ce580a30983.zip |
fix: some problems
-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) { |