servestream
servestream copied to clipboard
player_decode crash
In ffmpeg_mediaplayer.c, stop() won't wait player_decode thread to end. Sometimes JVM will free resources of player, but the player_decode thread might still be running.
Thus cause JNI crash inside player_decode.
Suggest pthread_join(state->decoder_thread as in reset().