Android: NativeWndowBuffer ownership issue in omxcodec for hardware h.264 decoding in android 4.0.4

大兔子大兔子 提交于 2019-12-08 13:50:02

问题


I am working on stagefright to decode and display mp4 file in android 4.0.4 with hardware codec.

Currently I am testing in Motorola Xoom device with android 4.0.4. I was able to decode and display the files for all resolutions fast enough for my requirement

but at the end of the decoding i.e for the last frame it crashes with the following error

08-27 12:24:53.500: A/OMXCodec(2677): 
frameworks/base/media/libstagefright/OMXCodec.cpp:2037 
CHECK_EQ( (int)bufInfo->mStatus,(int)OWNED_BY_NATIVE_WINDOW) failed: 0 vs. 2
08-27 12:24:53.500: A/libc(2677): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

When I checked the code of omxcodec this happens when the codec tries to dequeue native window buffer on release of the mediabuffer object which in turn calls the signalBufferReturned() function of omxcodec. But not getting how to solve this...
I have tried it in karbonnA9+ also where it is working fine currently..

Can someone give a solution or a suggestion.....

来源:https://stackoverflow.com/questions/25522999/android-nativewndowbuffer-ownership-issue-in-omxcodec-for-hardware-h-264-decodi

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