From: Andre Noll Date: Sun, 7 Jul 2013 11:22:48 +0000 (+0200) Subject: afh: Initialize audio format handlers only once. X-Git-Tag: v0.4.13~20 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=75602d559d3dd57d704839b817377646722bfed8;ds=sidebyside afh: Initialize audio format handlers only once. afc.c calls afh_init() twice. This does not really hurt as this function is idempotent, but it causes the initialization log messages to be printed twice. This gets rid of the additional call to afh_init() which crept in in commit 042767ce (Use self-made help to avoid recompilations on version changes). --- diff --git a/afh.c b/afh.c index 3881955d..8e707505 100644 --- a/afh.c +++ b/afh.c @@ -92,7 +92,6 @@ int main(int argc, char **argv) ret = -E_AFH_SYNTAX; if (conf.inputs_num == 0) goto out; - afh_init(); for (i = 0; i < conf.inputs_num; i++) { int ret2; ret = mmap_full_file(conf.inputs[i], O_RDONLY, &audio_file_data,