GNOME Bugzilla – Bug 795352
omxvideoenc/dec: fix handling of component enabling failing
Last modified: 2018-04-18 12:27:51 UTC
.
Created attachment 371083 [details] [review] omxvideoenc/dec: fix handling of component enabling failing - Report the error from OMX if any (OMX_EventError) - If not report the failing to the application (GST_ELEMENT_ERROR) - return GST_FLOW_ERROR rather than FALSE - don't leak @frame
Review of attachment 371083 [details] [review]: ::: omx/gstomxvideodec.c @@ +2735,3 @@ + if (!gst_omx_video_dec_enable (self, frame->input_buffer)) { + /* Report the OMX error, if any */ + if (gst_omx_component_get_last_error (self->dec) != OMX_ErrorNone) I would simply goto enable_error, and check for this in there.
Thanks. I changed that and merged to master (e1a149f3d52ab9e1f5d7b7f9a83eb59be2f6e0ee) and 1.14 (7f4949317970beeb2eb370656407b72c7593eac5).