diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2019-08-28 15:49:00 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-09-04 10:41:46 +0000 |
commit | a7ef71dc809cd02d9ec0898f54b7aafb09c8149a (patch) | |
tree | 5d69e601ea73f2100683bcc6ea6385a0595afc4f | |
parent | 35ffd018e29afea764e8ec3e7b17df129a999a4c (diff) | |
download | gst-omx-a7ef71dc809cd02d9ec0898f54b7aafb09c8149a.tar.gz |
omx: log when an output port is eos
-rw-r--r-- | omx/gstomx.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index c5814ad..0b4d6b8 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -377,8 +377,11 @@ gst_omx_component_handle_messages (GstOMXComponent * comp) "%s port %u got buffer flags 0x%08x (%s)", comp->name, port->index, (guint) flags, gst_omx_buffer_flags_to_string (flags)); if ((flags & OMX_BUFFERFLAG_EOS) - && port->port_def.eDir == OMX_DirOutput) + && port->port_def.eDir == OMX_DirOutput && !port->eos) { + GST_DEBUG_OBJECT (comp->parent, "%s port %u is EOS", comp->name, + port->index); port->eos = TRUE; + } break; } @@ -412,8 +415,11 @@ gst_omx_component_handle_messages (GstOMXComponent * comp) buf, buf->omx_buf->pBuffer); if ((buf->omx_buf->nFlags & OMX_BUFFERFLAG_EOS) - && port->port_def.eDir == OMX_DirOutput) + && port->port_def.eDir == OMX_DirOutput && !port->eos) { + GST_DEBUG_OBJECT (comp->parent, "%s port %u is EOS", comp->name, + port->index); port->eos = TRUE; + } } /* If an input port is managed by a pool, the buffer will be ready to be |