mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 00:25:37 -05:00
Set mAudioTrack to null when AudioTrack initialization fails
Prevents potential problems when stopping the app.
This commit is contained in:
@@ -473,6 +473,7 @@ public class SDLActivity extends Activity {
|
||||
|
||||
if (mAudioTrack.getState() != AudioTrack.STATE_INITIALIZED) {
|
||||
Log.e("SDL", "Failed during initialization of Audio Track");
|
||||
mAudioTrack = null;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user