Skip to content

Commit

Permalink
vdec: Return error if OMX_FreeBuffer is called in incorrect state
Browse files Browse the repository at this point in the history
- Return a proper error code (OMX_ErrorIncorrectStateOperation) if OMX_FreeBuffer
  is called in an incorrect state.

(cherry picked from commit 249b72c)

Change-Id: I0778f78b047f2125fdec29426fb2bbd264575b1c
CRs-Fixed: 329874
  • Loading branch information
Haynes Mathew George authored and Linux Build Service Account committed Jan 20, 2012
1 parent 1bf09ef commit 2454a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vidc/vdec/src/omx_vdec.cpp
Expand Up @@ -5053,7 +5053,7 @@ OMX_ERRORTYPE omx_vdec::free_buffer(OMX_IN OMX_HANDLETYPE hComp,
OMX_ErrorPortUnpopulated,
OMX_COMPONENT_GENERATE_EVENT);

return eRet;
return OMX_ErrorIncorrectStateOperation;
}
else if (m_state != OMX_StateInvalid)
{
Expand Down

0 comments on commit 2454a67

Please sign in to comment.