Adding error handling and protection when vaInitialize fail.

BZ: 53697

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.

Change-Id: I335d21e36c77b5978fa2db978699b6068c8401ed
Signed-off-by: Liu Bolun <>
Reviewed-by: Wang, Elaine <>
Reviewed-by: Shi, PingX <>
Tested-by: Shi, PingX <>
Reviewed-by: buildbot <>
Tested-by: buildbot <>
2 files changed