Commit 23a4ce44 authored by Max Kellermann's avatar Max Kellermann

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().
parent 0e87f855
...@@ -335,10 +335,11 @@ flac_decode_internal(struct decoder * decoder, struct input_stream *inStream, ...@@ -335,10 +335,11 @@ 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)) { }
err = "problem reading metadata";
goto fail; if (!flac_process_metadata(flacDec)) {
} err = "problem reading metadata";
goto fail;
} }
decoder_initialized(decoder, &data.audio_format, decoder_initialized(decoder, &data.audio_format,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment