Browse Source

OMX: Fix decoder will being stuck at OMX_FreeHandle after decode done

Signed-off-by: Som Qin <som.qin@starfivetech.com>
Som Qin 11 months ago
parent
commit
a8d360763d
1 changed files with 0 additions and 1 deletions
  1. 0 1
      omx-il/component/video/wave5/dec/SF_OMX_Vdec_decoder.c

+ 0 - 1
omx-il/component/video/wave5/dec/SF_OMX_Vdec_decoder.c

@@ -2169,7 +2169,6 @@ static OMX_ERRORTYPE SF_OMX_ComponentClear(SF_OMX_COMPONENT *pSfOMXComponent)
     /* enqueue DEC_StopThread mean cmd thread cycle end */
     cmd.Cmd = DEC_StopThread;
     SF_Queue_Enqueue(pSfVideoImplement->CmdQueue, &cmd);
-    pthread_cancel(pSfVideoImplement->pCmdThread->pthread);
 	pthread_join(pSfVideoImplement->pCmdThread->pthread, &ThreadRet);
     LOG(SF_LOG_INFO, "Cmd thread end %ld\r\n", (Uint64)ThreadRet);
     SF_Queue_Destroy(pSfVideoImplement->CmdQueue);