aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/oggvorbis_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:21 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:38:21 +0200
commit91502cd71ea92716729109677c6d8e57c42e63ae (patch)
tree14a8f8e554add64b4af22561446bae203195b34c /src/inputPlugins/oggvorbis_plugin.c
parentd0556dc9839627f899939e9419181a4ad9b2053d (diff)
downloadmpd-91502cd71ea92716729109677c6d8e57c42e63ae.tar.gz
mpd-91502cd71ea92716729109677c6d8e57c42e63ae.tar.xz
mpd-91502cd71ea92716729109677c6d8e57c42e63ae.zip
tag: renamed functions, no CamelCase
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/oggvorbis_plugin.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/inputPlugins/oggvorbis_plugin.c b/src/inputPlugins/oggvorbis_plugin.c
index 6d160dcdc..d8ee63bfe 100644
--- a/src/inputPlugins/oggvorbis_plugin.c
+++ b/src/inputPlugins/oggvorbis_plugin.c
@@ -158,9 +158,9 @@ static unsigned int ogg_parseCommentAddToTag(char *comment,
if (strncasecmp(comment, needle, len) == 0 && *(comment + len) == '=') {
if (!*tag)
- *tag = newMpdTag();
+ *tag = tag_new();
- addItemToMpdTag(*tag, itemType, comment + len + 1);
+ tag_add_item(*tag, itemType, comment + len + 1);
return 1;
}
@@ -191,17 +191,17 @@ static void putOggCommentsIntoOutputBuffer(char *streamName,
tag = oggCommentsParse(comments);
if (!tag && streamName) {
- tag = newMpdTag();
+ tag = tag_new();
}
if (!tag)
return;
if (streamName) {
- clearItemsFromMpdTag(tag, TAG_ITEM_NAME);
- addItemToMpdTag(tag, TAG_ITEM_NAME, streamName);
+ tag_clear_items_by_type(tag, TAG_ITEM_NAME);
+ tag_add_item(tag, TAG_ITEM_NAME, streamName);
}
- freeMpdTag(tag);
+ tag_free(tag);
}
/* public */
@@ -357,7 +357,7 @@ static struct tag *oggvorbis_TagDup(char *file)
ret = oggCommentsParse(ov_comment(&vf, -1)->user_comments);
if (!ret)
- ret = newMpdTag();
+ ret = tag_new();
ret->time = (int)(ov_time_total(&vf, -1) + 0.5);
ov_clear(&vf);