aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuddy Liong2015-02-26 15:16:43 -0600
committerBuddy Liong2015-04-24 16:25:40 -0500
commit565e6707f3ac1466d72b52909a903133503d48e7 (patch)
tree10910edff41d7f271401cb85015954195f727448
parent7345eec3dfe9cd5d255703aef881c2d08a99a8a3 (diff)
downloadrepo-libdce-565e6707f3ac1466d72b52909a903133503d48e7.tar.gz
repo-libdce-565e6707f3ac1466d72b52909a903133503d48e7.tar.xz
repo-libdce-565e6707f3ac1466d72b52909a903133503d48e7.zip
[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)
1357#ifdef PROFILE_TIME 1357#ifdef PROFILE_TIME
1358 INFO("processed returned in: %llu us", (uint64_t) mark_microsecond(&codec_process_time)); 1358 INFO("processed returned in: %llu us", (uint64_t) mark_microsecond(&codec_process_time));
1359#endif 1359#endif
1360 if( err ) { 1360 if( err == DCE_EXDM_FAIL ) {
1361 if( XDM_ISFATALERROR(outArgs->extendedError)) { 1361 if( XDM_ISFATALERROR(outArgs->extendedError)) {
1362 ERROR("process returned error: %d\n", err); 1362 ERROR("process returned error: %d\n", err);
1363 ERROR("extendedError: %08x", outArgs->extendedError); 1363 ERROR("extendedError: %08x", outArgs->extendedError);
@@ -1392,7 +1392,12 @@ int main(int argc, char * *argv)
1392 DEBUG("Non-fatal err=%d, extendedError=%08x", err, outArgs->extendedError); 1392 DEBUG("Non-fatal err=%d, extendedError=%08x", err, outArgs->extendedError);
1393 err = XDM_EOK; 1393 err = XDM_EOK;
1394 } 1394 }
1395 } 1395 }else if(( err == DCE_EXDM_UNSUPPORTED ) ||
1396 ( err == DCE_EIPC_CALL_FAIL ) ||
1397 ( err == DCE_EINVALID_INPUT )) {
1398 ERROR("DCE_TEST_FAIL: VIDDEC3_process return err %d", err);
1399 goto shutdown;
1400 }
1396 1401
1397 /* 1402 /*
1398 * Handling of output data from codec 1403 * Handling of output data from codec