X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh.c;h=5da339fe162ecec96d21cfa05fbde48b51f2a307;hp=8d8cadc7c81d8a7030778ee17e6bff6ba01f9a83;hb=a1610c2bd6e3097c6473c5403bfd59425b2058ba;hpb=177ea8ea46918a925c0d2d8a07e7fbe9f478a40c diff --git a/ogg_afh.c b/ogg_afh.c index 8d8cadc7..5da339fe 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2004 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2004 Andre Noll , see file COPYING. */ /** \file ogg_afh.c Audio format handler for ogg/vorbis files. */ @@ -177,14 +173,15 @@ static int vorbis_rewrite_tags(const char *map, size_t mapsize, static const char * const ogg_suffixes[] = {"ogg", NULL}; /** - * The init function of the ogg vorbis audio format handler. + * The ogg vorbis audio format handler. * - * \param afh Pointer to the struct to initialize. + * It should actually be called vorbis because the ogg container format is also + * employed for the speex and flac codecs. Both the ogg and the vorbis + * libraries must be installed to get this audio format handler. */ -void ogg_afh_init(struct audio_format_handler *afh) -{ - afh->get_file_info = ogg_vorbis_get_file_info; - afh->get_header = vorbis_get_header; - afh->suffixes = ogg_suffixes; - afh->rewrite_tags = vorbis_rewrite_tags; -} +const struct audio_format_handler ogg_afh = { + .get_file_info = ogg_vorbis_get_file_info, + .get_header = vorbis_get_header, + .suffixes = ogg_suffixes, + .rewrite_tags = vorbis_rewrite_tags +};