Skip to content

Commit 8d9dff4

Browse files
committed
oboe: fix timeout in waitForStateChange() for OpenSL ES
It used to not timeout and would spin until the state changed. Fixes #1061
1 parent d99a722 commit 8d9dff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opensles/AudioStreamOpenSLES.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ Result AudioStreamOpenSLES::waitForStateChange(StreamState currentState,
381381
}
382382

383383
// Did we timeout or did user ask for non-blocking?
384-
if (timeoutNanoseconds <= 0) {
384+
if (timeLeftNanos <= 0) {
385385
break;
386386
}
387387

0 commit comments

Comments
 (0)