aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBuddy Liong <buddy.budiono@ti.com>2015-02-26 15:16:43 -0600
committerBuddy Liong <buddy.budiono@ti.com>2015-04-24 16:25:40 -0500
commit565e6707f3ac1466d72b52909a903133503d48e7 (patch)
tree10910edff41d7f271401cb85015954195f727448
parent7345eec3dfe9cd5d255703aef881c2d08a99a8a3 (diff)
downloaddce-565e6707f3ac1466d72b52909a903133503d48e7.tar.gz
[DCE_TEST] Handling other errors from VIDDEC3_process
Currently dce_test is only handling XDM_ERROR only. If VIDDEC3_process return with other than XDM_ERROR for example, MmRpc_call is failing because IPU2 has crashed. Currently dce_test is not exiting because it is not handling the error. Change-Id: Ie901a2ab4bd48b9e1665be118e7aeffe780b2f58 Signed-off-by: Buddy Liong <buddy.budiono@ti.com>
-rw-r--r--test_qnx/dce_test/dce_test.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test_qnx/dce_test/dce_test.c b/test_qnx/dce_test/dce_test.c
index 33d4f03..ac8e536 100644
--- a/test_qnx/dce_test/dce_test.c
+++ b/test_qnx/dce_test/dce_test.c
@@ -1357,7 +1357,7 @@ int main(int argc, char * *argv)
#ifdef PROFILE_TIME
INFO("processed returned in: %llu us", (uint64_t) mark_microsecond(&codec_process_time));
#endif
- if( err ) {
+ if( err == DCE_EXDM_FAIL ) {
if( XDM_ISFATALERROR(outArgs->extendedError)) {
ERROR("process returned error: %d\n", err);
ERROR("extendedError: %08x", outArgs->extendedError);
@@ -1392,7 +1392,12 @@ int main(int argc, char * *argv)
DEBUG("Non-fatal err=%d, extendedError=%08x", err, outArgs->extendedError);
err = XDM_EOK;
}
- }
+ }else if(( err == DCE_EXDM_UNSUPPORTED ) ||
+ ( err == DCE_EIPC_CALL_FAIL ) ||
+ ( err == DCE_EINVALID_INPUT )) {
+ ERROR("DCE_TEST_FAIL: VIDDEC3_process return err %d", err);
+ goto shutdown;
+ }
/*
* Handling of output data from codec