diff options
author | Max Kellermann <max@duempel.org> | 2009-01-15 22:43:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-15 22:43:39 +0100 |
commit | f30adc352627d5aaaa933340dee24308e5920f15 (patch) | |
tree | 6126fe0c0ea493f80e0628384fd4a2f80caf8485 /src/decoder/_flac_common.h | |
parent | ccea3654945809932a7b85b365af11f91b5a1ded (diff) | |
download | mpd-f30adc352627d5aaaa933340dee24308e5920f15.tar.gz mpd-f30adc352627d5aaaa933340dee24308e5920f15.tar.xz mpd-f30adc352627d5aaaa933340dee24308e5920f15.zip |
flac: always allocate tag object
Free the tag object when it turns out to be empty. This simplifies
several functions and APIs.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/_flac_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/_flac_common.h b/src/decoder/_flac_common.h index 08b84c337..817f4ba5a 100644 --- a/src/decoder/_flac_common.h +++ b/src/decoder/_flac_common.h @@ -166,9 +166,9 @@ void flac_error_common_cb(const char *plugin, FLAC__StreamDecoderErrorStatus status, struct flac_data *data); -struct tag * -flac_vorbis_comments_to_tag(const FLAC__StreamMetadata * block, - struct tag *tag); +void +flac_vorbis_comments_to_tag(struct tag *tag, + const FLAC__StreamMetadata *block); FLAC__StreamDecoderWriteStatus flac_common_write(struct flac_data *data, const FLAC__Frame * frame, |