aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-10 14:49:34 +0100
committerMax Kellermann <max@duempel.org>2008-11-10 14:49:34 +0100
commit23a4ce4444e306943031928aa3f8bd2b7f51eb9a (patch)
treeb98ad9ac43abe92e7c4f176f364c2e861e2a0216
parent0e87f85598333c6e88ab115ebae15389fc23214a (diff)
downloadmpd-23a4ce4444e306943031928aa3f8bd2b7f51eb9a.tar.gz
mpd-23a4ce4444e306943031928aa3f8bd2b7f51eb9a.tar.xz
mpd-23a4ce4444e306943031928aa3f8bd2b7f51eb9a.zip
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().
-rw-r--r--src/decoder/flac_plugin.c9
1 files changed, 5 insertions, 4 deletions
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,