summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Thread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Thread.c b/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Thread.c
index d2689c0..9c4b622 100644
--- a/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Thread.c
+++ b/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Thread.c
@@ -291,7 +291,8 @@ void* OMX_VIDENC_Thread (void* pThreadData)
if ((FD_ISSET(pComponentPrivate->nFilled_iPipe[0], &rfds)) &&
(pComponentPrivate->eState != OMX_StatePause &&
- pComponentPrivate->eState != OMX_StateIdle))
+ pComponentPrivate->eState != OMX_StateIdle &&
+ pComponentPrivate->eState != OMX_StateLoaded))
{
OMX_PRBUFFER1(pComponentPrivate->dbg, "Enters OMX_VIDENC_Process_FilledInBuf\n");
eError = OMX_VIDENC_Process_FilledInBuf(pComponentPrivate);
@@ -309,8 +310,8 @@ void* OMX_VIDENC_Thread (void* pThreadData)
if (FD_ISSET(pComponentPrivate->nFree_oPipe[0], &rfds) &&
(pComponentPrivate->eState!= OMX_StatePause &&
- pComponentPrivate->eState != OMX_StateIdle &&
- pComponentPrivate->eState != OMX_StateLoaded))
+ pComponentPrivate->eState != OMX_StateIdle &&
+ pComponentPrivate->eState != OMX_StateLoaded))
{
OMX_PRBUFFER1(pComponentPrivate->dbg, "Enters OMX_VIDENC_Process_FreeOutBuf\n");
eError = OMX_VIDENC_Process_FreeOutBuf(pComponentPrivate);