Hack alert. If a very large number of frames to flush is calculate -- shome mhistake -- set it to something smaller.

This commit is contained in:
Mike Brady
2018-05-09 17:15:28 +01:00
parent ef4a63d34e
commit 46fae8feb3
+4 -2
View File
@@ -1725,8 +1725,10 @@ static void *player_thread_func(void *arg) {
free(silence);
}
} else if (frames_to_drop) {
if (frames_to_drop > 3 * config.output_rate)
warn("Very large number of frames to drop: %" PRId64 ".", frames_to_drop);
if (frames_to_drop > 3 * config.output_rate) {
warn("Shome mhistake shurely: very large number of frames to drop: %" PRId64 " -- setting it to %" PRId64 ".", frames_to_drop,3 * config.output_rate);
frames_to_drop = 3 * config.output_rate;
}
debug(3, "%" PRId64 " frames to drop.", frames_to_drop);
frames_to_drop -= inframe->length;
if (frames_to_drop < 0)