Open luukSchip opened 10 years ago
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().
If back button is pressed while a video stream is loading, the app crashes. You can reproduce this by opening an rtsp stream (e.g. rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov) in FFmpegExample and pressing back button while the stream is loading.
I get the following output:
Tested on a Samsung Galaxy S3 running Android 4.3