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 <firstname.lastname@example.org>
Reviewed-by: Wang, Elaine <email@example.com>
Reviewed-by: Shi, PingX <firstname.lastname@example.org>
Tested-by: Shi, PingX <email@example.com>
Reviewed-by: buildbot <firstname.lastname@example.org>
Tested-by: buildbot <email@example.com>
2 files changed