mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
omx: do not always print an error if OMX_{UseBuffer,EGLImage} fails
Let the caller decide to print an error. Because it can be part of a normal trial path. https://bugzilla.gnome.org/show_bug.cgi?id=784069
This commit is contained in:
parent
9928a881b0
commit
e60ac7e1c0
1 changed files with 6 additions and 1 deletions
|
@ -1687,8 +1687,13 @@ gst_omx_port_allocate_buffers_unlocked (GstOMXPort * port,
|
|||
buf->eglimage = FALSE;
|
||||
}
|
||||
|
||||
/* Let the caller decide to print an error when OMX_UseBuffer or
|
||||
* OMX_UseEGLImage fail. Indeed it can be part of a trial path. So
|
||||
* it is not necessary to warn the user if the fallback path succeeds.
|
||||
*/
|
||||
if (err != OMX_ErrorNone) {
|
||||
GST_ERROR_OBJECT (comp->parent,
|
||||
GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, (buffers
|
||||
|| images) ? GST_LEVEL_INFO : GST_LEVEL_ERROR, comp->parent,
|
||||
"Failed to allocate buffer for %s port %u: %s (0x%08x)", comp->name,
|
||||
port->index, gst_omx_error_to_string (err), err);
|
||||
gst_omx_port_deallocate_buffers_unlocked (port);
|
||||
|
|
Loading…
Reference in a new issue