1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Fix deadlock due to ogg stream prematurely ending

This commit is contained in:
Ted John
2022-06-08 00:28:44 +01:00
parent 3fae2413db
commit 704e68a9b4

View File

@@ -254,7 +254,7 @@ namespace OpenRCT2::Audio
bytesRead += readLen;
_offset += readLen;
}
if (_offset >= _source->GetLength())
if (readLen == 0 || _offset >= _source->GetLength())
{
if (_loop == 0)
{