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:
@@ -254,7 +254,7 @@ namespace OpenRCT2::Audio
|
||||
bytesRead += readLen;
|
||||
_offset += readLen;
|
||||
}
|
||||
if (_offset >= _source->GetLength())
|
||||
if (readLen == 0 || _offset >= _source->GetLength())
|
||||
{
|
||||
if (_loop == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user