X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=flac_afh.c;h=6e23683937f6932aaa739095ef8281fc9075da55;hp=45373ea1993d743ed56ded45444b3d8bb72fc751;hb=91dab140da62ea364af1a82b2b5e67e69205b35f;hpb=d31995b3074bb19aa4da66ce5c4774ca9ed101a1 diff --git a/flac_afh.c b/flac_afh.c index 45373ea1..6e236839 100644 --- a/flac_afh.c +++ b/flac_afh.c @@ -515,13 +515,12 @@ free_pfad: static const char * const flac_suffixes[] = {"flac", NULL}; /** - * The init function of the flac audio format handler. + * The audio format handler for flac (free lossless audio decoder). * - * \param afh pointer to the struct to initialize + * It depends on libflac and on libogg. */ -void flac_afh_init(struct audio_format_handler *afh) -{ - afh->get_file_info = flac_get_file_info, - afh->suffixes = flac_suffixes; - afh->rewrite_tags = flac_rewrite_tags; -} +const struct audio_format_handler flac_afh = { + .get_file_info = flac_get_file_info, + .suffixes = flac_suffixes, + .rewrite_tags = flac_rewrite_tags, +};