Skip to content

Commit 8cb2f4f

Browse files
committed
Android Sound Player Error Fix
1 parent f645676 commit 8cb2f4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/ofxAndroid/Java/cc/openframeworks/OFAndroidSoundPlayer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ public boolean onError(MediaPlayer mp, int what, int extra) {
639639
// The MediaPlayer has moved to the Error state, must be reset!
640640
Log.w("OF", "onError The MediaPlayer has moved to the Error state, must be reset!");
641641
bIsPrepared = false;
642+
bIsLoaded = false;
642643
bWasResume = false;
643644
boolean forceResetIfError = true;
644645
if(forceResetIfError) {

0 commit comments

Comments
 (0)