Android MediaCodec API not working in Child Thread

試著忘記壹切 提交于 2020-01-02 19:32:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!