decoder/flac: merged some code into flac_tag_apply_metadata()

This commit is contained in:
Max Kellermann
2009-11-11 00:05:14 +01:00
parent 305de100a7
commit 884be8e2b3
4 changed files with 27 additions and 25 deletions

View File

@@ -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 */