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.
This commit is contained in:
Max Kellermann
2010-01-05 21:46:12 +01:00
parent ae9c02b3a8
commit 550c9319e9
4 changed files with 23 additions and 51 deletions

View File

@@ -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,