omx-core: optimizate error handling for OMX core

BZ: 27871

The specific here is to flash port to return buffer to framework
before sending the error event to avoid those events been ignored in
error state.

Change-Id: Ifb7020f1aa3a64d3a9096b27f5d8ce96a7db737c
Signed-off-by: Weian Chen <weian.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/39477
Reviewed-by: Chen, Tianmi <tianmi.chen@intel.com>
Reviewed-by: Wang, Yi A <yi.a.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
1 file changed