]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
afh: Unify name of init functions.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 14 Jul 2017 18:05:21 +0000 (20:05 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 18 Jul 2017 16:37:02 +0000 (18:37 +0200)
The init functions of the mp3 and ogg audio format handlers lacked
the _afh part in the name which all other audio format handlers have.

afh_common.c
mp3_afh.c
ogg_afh.c

index 4d8884a6ce8d07e6413d9a3c71630078bdbe853b..b47def871a94e781c4afe3987c1f68071e1ea0b2 100644 (file)
@@ -17,7 +17,7 @@
 
 typedef void afh_init_func(struct audio_format_handler *);
 /* It does not hurt to declare init functions which are not available. */
-extern afh_init_func mp3_init, ogg_init, aac_afh_init, wma_afh_init,
+extern afh_init_func mp3_afh_init, ogg_afh_init, aac_afh_init, wma_afh_init,
        spx_afh_init, flac_afh_init, opus_afh_init;
 
 /** The list of all status items */
@@ -38,12 +38,12 @@ const char *status_item_list[] = {STATUS_ITEM_ARRAY};
 static struct audio_format_handler afl[] = {
        {
                .name = "mp3",
-               .init = mp3_init,
+               .init = mp3_afh_init,
        },
        {
                .name = "ogg",
 #if defined(HAVE_OGG) && defined(HAVE_VORBIS)
-               .init = ogg_init,
+               .init = ogg_afh_init,
 #endif
        },
        {
index e5d0ff138fcfc5efed849679ca430bff87726074..08837bec597918ed73fe27febbb0a42fbadf654e 100644 (file)
--- a/mp3_afh.c
+++ b/mp3_afh.c
@@ -690,7 +690,7 @@ static const char * const mp3_suffixes[] = {"mp3", NULL};
  *
  * \param afh pointer to the struct to initialize
  */
-void mp3_init(struct audio_format_handler *afh)
+void mp3_afh_init(struct audio_format_handler *afh)
 {
        afh->get_file_info = mp3_get_file_info;
        afh->suffixes = mp3_suffixes;
index 2ddf0ee35818fc7fe7aa59ccaf04ad75e7a07502..cb0611e01440a2a1e23e4c586a602c16cb7bbc16 100644 (file)
--- a/ogg_afh.c
+++ b/ogg_afh.c
@@ -212,7 +212,7 @@ static const char * const ogg_suffixes[] = {"ogg", NULL};
  *
  * \param afh Pointer to the struct to initialize.
  */
-void ogg_init(struct audio_format_handler *afh)
+void ogg_afh_init(struct audio_format_handler *afh)
 {
        afh->get_file_info = ogg_vorbis_get_file_info;
        afh->get_header = vorbis_get_header;