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
This commit is contained in:
Max Kellermann 2008-04-12 04:20:50 +00:00 committed by Eric Wong
parent 1db6478491
commit 3919a87525

View File

@ -262,8 +262,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
data->time += timeChange;
flac_get_decode_position(dec, &newPosition);
if (data->position) {
assert(newPosition >= data->position);
if (data->position && newPosition >= data->position) {
assert(timeChange >= 0);
data->bitRate =