android4.0
ICS :模拟器
播放视频文件,只有audio出来,黑屏。
有log 如下:
E/AwesomePlayer( 37): mVideoSource->read() return err = 0
I/AwesomePlayer( 37): XXX mSeekTimeUs = 17215000 us, timeUs = 15749000 us
I/AwesomePlayer( 37): after SEEK_VIDEO_ONLY we're late by 1.88 secs
W/GraphicBufferAllocator( 34): alloc(320, 214, 842094169, 00002930, ...) failed -22 (Invalid argument)
E/SurfaceFlinger( 34): GraphicBufferAlloc::createGraphicBuffer(w=320, h=214) failed (Invalid argument), handle=0x0
E/SurfaceTexture( 34): [SurfaceView] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
W/SoftwareRenderer( 37): Surface::dequeueBuffer returned error -22
------解决方案--------------------
gralloc.xxx.so中分配内存未支持HAL_PIXEL_FORMAT_YV12
格式,导致内存分配失败
android4.0中的graphicbuffer管理机制更新了