From 803b7b24229c42cd9d5eee8c1da166382a321d5c Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 13 Jul 2010 16:28:36 +0200 Subject: sink_inputs volume made changable --- src/sink_input.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sink_input.c') diff --git a/src/sink_input.c b/src/sink_input.c index 8b3eab8..a1440df 100644 --- a/src/sink_input.c +++ b/src/sink_input.c @@ -16,10 +16,10 @@ sink_input_info* sink_input_init(void) { } void sink_input_clear(sink_input_info* sink_input) { - + if (sink_input->name != NULL) free(sink_input->name); - + if (sink_input->pid != NULL) free(sink_input->pid); @@ -33,12 +33,12 @@ sink_input_info** sink_input_list_init(int max) { for (int i = 0; i < max; ++i) sink_input_list[i] = NULL; - + return sink_input_list; } void sink_input_list_enlarge(sink_input_info*** sink_input_list, int* max, int counter) { - + *max *= 2; *sink_input_list = (sink_input_info**) realloc(*sink_input_list, (*max) * sizeof(sink_input_info*)); @@ -47,7 +47,7 @@ void sink_input_list_enlarge(sink_input_info*** sink_input_list, int* max, int c } void sink_input_list_clear(sink_input_info** sink_input_list, int *max) { - + for (int i = 0; i < (*max); ++i) if (sink_input_list[i] != NULL) sink_input_clear(sink_input_list[i]); @@ -59,7 +59,7 @@ void sink_input_list_clear(sink_input_info** sink_input_list, int *max) { } void sink_input_check(sink_input_info** sink_input) { - + if (sink_input == NULL) printf("Error: NULL\n"); -- cgit