X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=amp_filter.c;h=9484966380a3610a8a0bab0a7eeef4bc67f9a21f;hp=4c3a336c6ba64650ccecf5033392aa4e558c2427;hb=6ca50bc4766fab54698a6c86b5395a49221c3408;hpb=8e290f7e1bb88bc9ce8c4fa8fa428e39d5b1f24a diff --git a/amp_filter.c b/amp_filter.c index 4c3a336c..94849663 100644 --- a/amp_filter.c +++ b/amp_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Andre Noll + * Copyright (C) 2009-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -23,7 +23,6 @@ extern char *stat_item_values[NUM_STAT_ITEMS]; /** Data specific to the amplify filter. */ struct private_amp_data { /** Points to the configuration data for this instance of this filter. */ - struct amp_filter_args_info *conf; /** Amplification factor. */ unsigned amp; }; @@ -52,14 +51,14 @@ err: static void amp_open(struct filter_node *fn) { struct private_amp_data *pad = para_calloc(sizeof(*pad)); + struct amp_filter_args_info *conf = fn->conf; - pad->conf = fn->conf; fn->private_data = pad; fn->min_iqs = 2; - if (!pad->conf->amp_given && stat_item_values[SI_AMPLIFICATION]) + if (!conf->amp_given && stat_item_values[SI_AMPLIFICATION]) sscanf(stat_item_values[SI_AMPLIFICATION], "%u", &pad->amp); else - pad->amp = pad->conf->amp_arg; + pad->amp = conf->amp_arg; PARA_NOTICE_LOG("amplification: %u (scaling factor: %1.2f)\n", pad->amp, pad->amp / 64.0 + 1.0); }