aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/oggflac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-11 00:05:14 +0100
committerMax Kellermann <max@duempel.org>2009-11-11 00:05:14 +0100
commit884be8e2b33c4ae536ee72ed1783aacdfe35bd6b (patch)
tree582c9da8f6599c9d578e6f261414854aa76c05f1 /src/decoder/oggflac_plugin.c
parent305de100a7f9ab7c62c4a2f3f447919d98879a3f (diff)
downloadmpd-884be8e2b33c4ae536ee72ed1783aacdfe35bd6b.tar.gz
mpd-884be8e2b33c4ae536ee72ed1783aacdfe35bd6b.tar.xz
mpd-884be8e2b33c4ae536ee72ed1783aacdfe35bd6b.zip
decoder/flac: merged some code into flac_tag_apply_metadata()
Diffstat (limited to '')
-rw-r--r--src/decoder/oggflac_plugin.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/decoder/oggflac_plugin.c b/src/decoder/oggflac_plugin.c
index c139fd114..dff76be51 100644
--- a/src/decoder/oggflac_plugin.c
+++ b/src/decoder/oggflac_plugin.c
@@ -170,16 +170,7 @@ static void of_metadata_dup_cb(G_GNUC_UNUSED const OggFLAC__SeekableStreamDecode
assert(data->tag != NULL);
- switch (block->type) {
- case FLAC__METADATA_TYPE_STREAMINFO:
- data->tag->time = flac_duration(&block->data.stream_info);
- return;
- case FLAC__METADATA_TYPE_VORBIS_COMMENT:
- flac_vorbis_comments_to_tag(data->tag, NULL,
- &block->data.vorbis_comment);
- default:
- break;
- }
+ flac_tag_apply_metadata(data->tag, NULL, block);
}
/* used by decode */