End music playback on critical error, ryzom/ryzomcore#661

core4
kaetemi 3 years ago
parent 01881d26c3
commit 5b85b4e837
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -180,13 +180,17 @@ uint32 CAudioDecoderVorbis::getNextBytes(uint8 *buffer, uint32 minimum, uint32 m
nlwarning("ov_read returned OV_HOLE");
break;
case OV_EINVAL:
_IsMusicEnded = true;
nlwarning("ov_read returned OV_EINVAL");
break;
case OV_EBADLINK:
_IsMusicEnded = true;
nlwarning("ov_read returned OV_EBADLINK");
break;
default:
_IsMusicEnded = true;
nlwarning("ov_read returned %d", br);
break;
}
}
} while (bytes_read < minimum);

Loading…
Cancel
Save