From f30adc352627d5aaaa933340dee24308e5920f15 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 15 Jan 2009 22:43:39 +0100 Subject: flac: always allocate tag object Free the tag object when it turns out to be empty. This simplifies several functions and APIs. --- src/decoder/_flac_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/decoder/_flac_common.h') 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, -- cgit v1.2.3