From 550c9319e9f6e68a7f7cc72054de657e6e921072 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Jan 2010 21:46:12 +0100 Subject: decoder/flac: moved decoder initialization to _flac_common.c Invoke decoder_initialized() in the libFLAC metadata callback. This merges code from the FLAC and the OggFLAC decoder plugin into the common library. --- src/decoder/oggflac_decoder_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/oggflac_decoder_plugin.c') diff --git a/src/decoder/oggflac_decoder_plugin.c b/src/decoder/oggflac_decoder_plugin.c index 63438c2b9..7e5f48318 100644 --- a/src/decoder/oggflac_decoder_plugin.c +++ b/src/decoder/oggflac_decoder_plugin.c @@ -297,7 +297,7 @@ oggflac_decode(struct decoder * mpd_decoder, struct input_stream *input_stream) goto fail; } - if (!flac_data_get_audio_format(&data, &audio_format)) + if (!data.initialized) goto fail; decoder_initialized(mpd_decoder, &audio_format, -- cgit v1.2.3