flac: parse stream tags

Parse the vorbis comments in libflac's metadata_callback and pass them
as tag struct to the decoder API.
This commit is contained in:
Max Kellermann
2009-03-01 14:07:23 +01:00
parent 92db09fdf8
commit ba3a8474b6
3 changed files with 20 additions and 2 deletions
+4
View File
@@ -187,6 +187,10 @@ void flac_metadata_common_cb(const FLAC__StreamMetadata * block,
break;
case FLAC__METADATA_TYPE_VORBIS_COMMENT:
flac_parse_replay_gain(block, data);
if (data->tag != NULL)
flac_vorbis_comments_to_tag(data->tag, block);
default:
break;
}