omx: log the number of pending buffers when port is EOS
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Wed, 28 Aug 2019 10:22:41 +0000 (15:52 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 4 Sep 2019 10:41:46 +0000 (10:41 +0000)
omx/gstomx.c

index 0b4d6b8..be2ce6f 100644 (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;