summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@sharp.fm>2016-12-12 11:09:15 +0000
committerSebastian Dröge <sebastian@centricular.com>2016-12-13 11:38:36 +0200
commit5d5fbcd8f6704a805faf9dbcefb7f5fd977c447f (patch)
treec4ed936b225adbd239c0fd441c79a852f3b23615
parent05b137a256f0e90926c76b0c8b76f16e35ccc65c (diff)
downloadgst-omx-5d5fbcd8f6704a805faf9dbcefb7f5fd977c447f.tar.gz
Add clear debug logging on all the paths out of gst_omx_port_acquire_buffer()
https://bugzilla.gnome.org/show_bug.cgi?id=774600
-rw-r--r--omx/gstomx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index ca1fc2d..127a1c1 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -1267,6 +1267,8 @@ retry:
/* Check if the port is flushing */
if (port->flushing) {
+ GST_DEBUG_OBJECT (comp->parent, "Component %s port %d is flushing",
+ comp->name, port->index);
ret = GST_OMX_ACQUIRE_BUFFER_FLUSHING;
goto done;
}
@@ -1292,6 +1294,8 @@ retry:
/* Only if this port needs to be reconfigured too notify
* the caller about it */
if (port->settings_cookie != port->configured_settings_cookie) {
+ GST_DEBUG_OBJECT (comp->parent,
+ "Component %s port %d needs reconfiguring", comp->name, port->index);
ret = GST_OMX_ACQUIRE_BUFFER_RECONFIGURE;
goto done;
}
@@ -1314,6 +1318,8 @@ retry:
goto done;
}
+ GST_DEBUG_OBJECT (comp->parent, "Component %s port %d needs reconfiguring",
+ comp->name, port->index);
ret = GST_OMX_ACQUIRE_BUFFER_RECONFIGURE;
goto done;
}
@@ -1334,6 +1340,8 @@ retry:
GST_DEBUG_OBJECT (comp->parent, "%s output port %u is EOS but waiting "
"in case it spits out more buffers", comp->name, port->index);
} else {
+ GST_DEBUG_OBJECT (comp->parent, "Component %s port %d signalled EOS",
+ comp->name, port->index);
ret = GST_OMX_ACQUIRE_BUFFER_EOS;
goto done;
}