问题
In Android, I tried using MediaCodec api (MediaCodecList.getCodecCount())
in Main Thread seems working fine with no issues. But the same api when i used inside its child thread, ends up with application crash.
The crash log was stated below:
A/libc(18571): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xe0 in tid 18600
The above scenario was tested with Andriod 5.0.2 mobile device.
Why such behaviour and any idea to resolve this ?
来源:https://stackoverflow.com/questions/32884208/android-mediacodec-api-not-working-in-child-thread