From 23a4ce4444e306943031928aa3f8bd2b7f51eb9a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 10 Nov 2008 14:49:34 +0100 Subject: flac: call flac_process_metadata() for ogg files The flac plugin wasn't initialized properly when an OGG file was being decoded. For some reason, flac_process_metadata() was explicitly not called for OGG files. Since that seems to fix the issue, make it always call flac_process_metadata(). --- src/decoder/flac_plugin.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c index a24c97a95..0afa85431 100644 --- a/src/decoder/flac_plugin.c +++ b/src/decoder/flac_plugin.c @@ -335,10 +335,11 @@ flac_decode_internal(struct decoder * decoder, struct input_stream *inStream, err = "doing init()"; goto fail; } - if (!flac_process_metadata(flacDec)) { - err = "problem reading metadata"; - goto fail; - } + } + + if (!flac_process_metadata(flacDec)) { + err = "problem reading metadata"; + goto fail; } decoder_initialized(decoder, &data.audio_format, -- cgit v1.2.3