memcpy(p + og->header_len, og->body, og->body_len);
vghd->buf = buf;
vghd->len = new_len;
- PARA_DEBUG_LOG("header/body/old/new: %lu/%lu/%zu/%zu\n",
+ PARA_DEBUG_LOG("header/body/old/new: %li/%li/%zu/%zu\n",
og->header_len, og->body_len, old_len, new_len);
}
PARA_ERROR_LOG("%s\n", para_strerror(-ret));
}
-static const char* ogg_suffixes[] = {"ogg", NULL};
-
static int vorbis_make_meta_packet(struct taginfo *tags, ogg_packet *result)
{
vorbis_comment vc;
free(packet.packet);
return ret;
}
+
+static const char * const ogg_suffixes[] = {"ogg", NULL};
+
/**
* The init function of the ogg vorbis audio format handler.
*
* \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;