omx: log the number of pending buffers when port is EOS

This commit is contained in:
Guillaume Desmottes 2019-08-28 15:52:41 +05:30 committed by Tim-Philipp Müller
parent a7ef71dc80
commit 76267ec55d

View file

@ -2177,7 +2177,8 @@ retry:
if (port->port_def.eDir == OMX_DirOutput && port->eos) {
if (!g_queue_is_empty (&port->pending_buffers)) {
GST_DEBUG_OBJECT (comp->parent, "%s output port %u is EOS but has "
"buffers pending", comp->name, port->index);
"%d buffers pending", comp->name, port->index,
g_queue_get_length (&port->pending_buffers));
_buf = g_queue_pop_head (&port->pending_buffers);
ret = GST_OMX_ACQUIRE_BUFFER_OK;