mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
omx: Also properly release buffers when in error state
This commit is contained in:
parent
0682012181
commit
1d071c05dc
1 changed files with 2 additions and 0 deletions
|
@ -1048,6 +1048,8 @@ gst_omx_port_release_buffer (GstOMXPort * port, GstOMXBuffer * buf)
|
||||||
if ((err = gst_omx_component_get_last_error (comp)) != OMX_ErrorNone) {
|
if ((err = gst_omx_component_get_last_error (comp)) != OMX_ErrorNone) {
|
||||||
GST_ERROR_OBJECT (comp->parent, "Component is in error state: %s (0x%08x)",
|
GST_ERROR_OBJECT (comp->parent, "Component is in error state: %s (0x%08x)",
|
||||||
gst_omx_error_to_string (err), err);
|
gst_omx_error_to_string (err), err);
|
||||||
|
g_queue_push_tail (port->pending_buffers, buf);
|
||||||
|
g_cond_broadcast (port->port_cond);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue