Android MediaCodec API not working in Child Thread

2019-05-25 01:33发布

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 ?

0条回答
登录 后发表回答