summaryrefslogtreecommitdiff
path: root/src/pa-sink-ctl.c
diff options
context:
space:
mode:
authorJan Klemkow <web2p10@wemelug.de>2010-07-12 21:39:31 +0200
committerJan Klemkow <web2p10@wemelug.de>2010-07-12 21:39:31 +0200
commit6c2431b9f428d21b5219be97d07c7ce580a30983 (patch)
tree4a954db9ac4f6bdfdc1d487e8db4464c45503aa1 /src/pa-sink-ctl.c
parent9bf6d50010991bfe42465ab0b8cf298bad698d49 (diff)
downloadpa-sink-ctl-6c2431b9f428d21b5219be97d07c7ce580a30983.tar.gz
pa-sink-ctl-6c2431b9f428d21b5219be97d07c7ce580a30983.tar.bz2
pa-sink-ctl-6c2431b9f428d21b5219be97d07c7ce580a30983.zip
fix: some problems
Diffstat (limited to 'src/pa-sink-ctl.c')
-rw-r--r--src/pa-sink-ctl.c5
1 files changed, 2 insertions, 3 deletions
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) {