Hi all, Current GonkNativeWindow do not support NATIVE_WINDOW_SET_BUFFERS_SIZE. It is set from OMXCodec. But current implementation cause a problem on my hardware(qcom ics), when playing videos. From codeaurora.org's source code, it seems that qcom ics platform request ANativeWindow to support NATIVE_WINDOW_SET_BUFFERS_SIZE.
When I try to play a local video(gizmo2.mp4 [1]) on the phone. It faild to play with following error log. > F/OMXCodec( 147): frameworks/base/media/libstagefright/OMXCodec.cpp:2935 CHECK_EQ( def.nBufferSize,handle->size) failed: 155648 vs. 147456 I filed a bug(796854 <https://bugzilla.mozilla.org/show_bug.cgi?id=796854> [2]) and create a patch[3] to address the problem on my phone. It seems that ANativeWindow need to support NATIVE_WINDOW_SET_BUFFERS_SIZE on some qcom ics platforms. Does someone know whether same problem could also happen on otoro or other devices? [1] https://github.com/mozilla-b2g/gaia/blob/master/test_media/Movies/gizmo2.mp4 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=796854 [3] https://bugzilla.mozilla.org/attachment.cgi?id=666905&action=diff Thanks in advance. Sotaro -- //////////////////////////////////////// シャープ株式会社 通信システム事業本部 要素技術開発センター インターフェース開発部 池田 総太郎 << Ikeda Sotaro >> email : [email protected] ADR : 千葉県千葉市美浜区中瀬 1-9-2 TEL : 043-299-8371 (ext. 8-431-3496) FAX : 043-299-8093 (ext. 8-431-3139) _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
