Description
Calling FFmpegKit.cancel() 4 times, without any parameters kills the application.
Expected behavior
None of the API methods should cause the application to crash.
Current behavior
Application crashes.
To Reproduce
Call FFmpegKit.cancel() 4 times, without any method parameters.
Expected behavior
No crash.
Logs
No logs are printed to console.
Environment
- Platform: Android
- Architecture: arm-v7a, arm-v7a-neon, arm64-v8a, x86, x86_64
- Version: v4.4
- Android Studio version: 2020.3.1
- Android NDK version: r22b
Other
The issue was discovered on Android but it affects all platforms. Initial investigation show that the sigterm_handler method is responsible of that crash. The implementation coming from ffmpeg calls the exit method on the 4th call. See sigterm_handler method.