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().
This commit is contained in:
Max Kellermann
2008-11-10 14:49:34 +01:00
parent 0e87f85598
commit 23a4ce4444

View File

@@ -335,11 +335,12 @@ flac_decode_internal(struct decoder * decoder, struct input_stream *inStream,
err = "doing init()"; err = "doing init()";
goto fail; goto fail;
} }
}
if (!flac_process_metadata(flacDec)) { if (!flac_process_metadata(flacDec)) {
err = "problem reading metadata"; err = "problem reading metadata";
goto fail; goto fail;
} }
}
decoder_initialized(decoder, &data.audio_format, decoder_initialized(decoder, &data.audio_format,
inStream->seekable, data.total_time); inStream->seekable, data.total_time);