Commit ab95027f authored by Max Kellermann's avatar Max Kellermann

decoder/flac: suppress warning at end of stream

This is required if a stream ands without another chained FLAC file.
parent ed3bc4ab
...@@ -135,7 +135,8 @@ static bool ...@@ -135,7 +135,8 @@ static bool
flac_decoder_initialize(struct flac_data *data, FLAC__StreamDecoder *sd) flac_decoder_initialize(struct flac_data *data, FLAC__StreamDecoder *sd)
{ {
if (!FLAC__stream_decoder_process_until_end_of_metadata(sd)) { if (!FLAC__stream_decoder_process_until_end_of_metadata(sd)) {
LogWarning(flac_domain, "problem reading metadata"); if (FLAC__stream_decoder_get_state(sd) != FLAC__STREAM_DECODER_END_OF_STREAM)
LogWarning(flac_domain, "problem reading metadata");
return false; return false;
} }
......
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