Adding error handling and protection when vaInitialize fail.
vaInitialize may return a fail value rarely.It can cause mediaserver died.
So, we need adding some error handling and protectionwhen va initialize failure.
Add a variable to flag vaInitialize is successful or not.If not, it will marked as false.
Before starting encoding,check this variable.
If it is false, reture a error code toOMX Component and stop encoding.
Signed-off-by: Liu Bolun <email@example.com>
Reviewed-by: Wang, Elaine <firstname.lastname@example.org>
Reviewed-by: Shi, PingX <email@example.com>
Tested-by: Shi, PingX <firstname.lastname@example.org>
Reviewed-by: buildbot <email@example.com>
Tested-by: buildbot <firstname.lastname@example.org>
2 files changed