Commit 3919a875 authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

replaced assertion with check

During my tests, it happened that data->position>newPosition. I have not yet fully understood why this can happen; for now, replace this with a run-time check. git-svn-id: https://svn.musicpd.org/mpd/trunk@7334 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 1db64784
...@@ -262,8 +262,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec, ...@@ -262,8 +262,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
data->time += timeChange; data->time += timeChange;
flac_get_decode_position(dec, &newPosition); flac_get_decode_position(dec, &newPosition);
if (data->position) { if (data->position && newPosition >= data->position) {
assert(newPosition >= data->position);
assert(timeChange >= 0); assert(timeChange >= 0);
data->bitRate = data->bitRate =
......
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