- GST_WARNING_OBJECT (core->object, "do not send g_cond_signal when MFC init fail. (%d)", core->omx_unrecover_err_cnt);
+ GST_WARNING_OBJECT (core->object, "do not send g_cond_signal when MFC init fail. (%d)",
+ core->omx_unrecover_err_cnt);
+ if (core->omx_unrecover_err_cnt == 0) {
+ if (core->post_gst_element_error == FALSE) {
+ GST_ERROR_OBJECT (core->object, "post GST_ELEMENT_ERROR as Error from OpenMAX component");
+ GST_ELEMENT_ERROR (core->object, STREAM, FAILED, (NULL), ("%s", "Error from OpenMAX component"));
+ core->post_gst_element_error = TRUE;
+ } else {
+ GST_ERROR_OBJECT (core->object, "GST_ELEMENT_ERROR is already posted. skip this (Error from OpenMAX component)");
+ }
+ }