aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/flac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-10 21:58:19 +0100
committerMax Kellermann <max@duempel.org>2009-11-10 21:58:19 +0100
commite51d9fc6a9902c2ef448abf8f1151964a441d788 (patch)
tree274cf5d11b3db0d2661919ad828f6e0d62d67c23 /src/decoder/flac_plugin.c
parent2f69831fb8a0ad13236e91b3edbbcd0a7658a5bf (diff)
downloadmpd-e51d9fc6a9902c2ef448abf8f1151964a441d788.tar.gz
mpd-e51d9fc6a9902c2ef448abf8f1151964a441d788.tar.xz
mpd-e51d9fc6a9902c2ef448abf8f1151964a441d788.zip
decoder/flac: pass VorbisComment to comments_to_tag()
Diffstat (limited to '')
-rw-r--r--src/decoder/flac_plugin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index 73d82a65c..e2620c676 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -269,7 +269,8 @@ flac_tag_load(const char *file, const char *char_tnum)
if (!block)
break;
if (block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
- flac_vorbis_comments_to_tag(tag, char_tnum, block);
+ flac_vorbis_comments_to_tag(tag, char_tnum,
+ &block->data.vorbis_comment);
} else if (block->type == FLAC__METADATA_TYPE_STREAMINFO) {
tag->time = ((float)block->data.stream_info.total_samples) /
block->data.stream_info.sample_rate + 0.5;
@@ -849,7 +850,8 @@ oggflac_tag_dup(const char *file)
if (!(block = FLAC__metadata_iterator_get_block(it)))
break;
if (block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
- flac_vorbis_comments_to_tag(ret, NULL, block);
+ flac_vorbis_comments_to_tag(ret, NULL,
+ &block->data.vorbis_comment);
} else if (block->type == FLAC__METADATA_TYPE_STREAMINFO) {
ret->time = ((float)block->data.stream_info.
total_samples) /