Browse Source

Merge branch 'CR_3120_vpu_515_Som.Qin' into 'jh7110-devel'

CR 3120 VPU: fix that low probability of segment fault when decoding finish

See merge request sdk/soft_3rdpart!17
andy.hu 1 year ago
parent
commit
b580826be8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      wave511/code/sample_v2/component/component.c

+ 3 - 1
wave511/code/sample_v2/component/component.c

@@ -180,9 +180,11 @@ Int32 ComponentWait(Component component)
         return (com->state != COMPONENT_STATE_TERMINATED) ? 2 : 0;
     }
 
-    if ((ret=osal_thread_timedjoin(com->thread, (void**)&retval, 100)) == 0) {
+    if ((ret=osal_thread_timedjoin(com->thread, (void**)&retval, 5000)) == 0) {
         com->thread = NULL;
         WaitReturningPortData(com);
+    } else {
+        VLOG(ERR, "%s:%d wait Component %s timeout\n", __FUNCTION__, __LINE__, com->name);
     }
 
     return ret;