Feature: check null pointer

pull/221/head
xufuji456 2 years ago
parent 31d19d6d0f
commit fac7760eec
  1. 2
      app/src/main/cpp/audio_player_jni.cpp

@ -86,6 +86,8 @@ AUDIO_PLAYER_FUNC(void, native_1again, long context, jstring filter_jstr) {
AUDIO_PLAYER_FUNC(void, native_1release, long context) {
auto *audioPlayer = (FFAudioPlayer*) context;
if (!audioPlayer)
return;
audioPlayer->setExit(true);
}

Loading…
Cancel
Save