Fix crashes on unseekable or pure empty vorbis files
This commit is contained in:
@@ -372,7 +372,7 @@ class NativeAudioSource {
|
||||
|
||||
if (playing) {
|
||||
var timeRemaining = (getLength() - value) / getPitch();
|
||||
if (timeRemaining < 8) complete();
|
||||
if (timeRemaining < 8 && value > 8) complete();
|
||||
else {
|
||||
completed = streamEnded = false;
|
||||
if (streamed) {
|
||||
|
||||
Reference in New Issue
Block a user