summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2013-04-18 16:40:06 +0200
committerJosep Torra <n770galaxy@gmail.com>2013-04-18 16:53:58 +0200
commit28beb68797c6a260a37bedfa0c0d6026b3dd0a84 (patch)
treefaba0e54a825e79af1c20b65f33d85231ed184e6
parent4302030ef9582594665f1c757b7c7981e6e22edc (diff)
downloadgst-omx-28beb68797c6a260a37bedfa0c0d6026b3dd0a84.tar.gz
omx: fixes unused variable 'comp' when GStreamer is built without debug
-rw-r--r--omx/gstomx.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index 41b0a54..374acf7 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -345,15 +345,14 @@ gst_omx_component_handle_messages (GstOMXComponent * comp)
case GST_OMX_MESSAGE_BUFFER_DONE:{
GstOMXBuffer *buf = msg->content.buffer_done.buffer->pAppPrivate;
GstOMXPort *port;
- GstOMXComponent *comp;
port = buf->port;
- comp = port->comp;
if (msg->content.buffer_done.empty) {
/* Input buffer is empty again and can be used to contain new input */
- GST_LOG_OBJECT (comp->parent, "%s port %u emptied buffer %p (%p)",
- comp->name, port->index, buf, buf->omx_buf->pBuffer);
+ GST_LOG_OBJECT (port->comp->parent,
+ "%s port %u emptied buffer %p (%p)", port->comp->name,
+ port->index, buf, buf->omx_buf->pBuffer);
/* Reset offset and filled length */
buf->omx_buf->nOffset = 0;
@@ -367,8 +366,9 @@ gst_omx_component_handle_messages (GstOMXComponent * comp)
} else {
/* Output buffer contains output now or
* the port was flushed */
- GST_LOG_OBJECT (comp->parent, "%s port %u filled buffer %p (%p)",
- comp->name, port->index, buf, buf->omx_buf->pBuffer);
+ GST_LOG_OBJECT (port->comp->parent,
+ "%s port %u filled buffer %p (%p)", port->comp->name, port->index,
+ buf, buf->omx_buf->pBuffer);
if ((buf->omx_buf->nFlags & OMX_BUFFERFLAG_EOS)
&& port->port_def.eDir == OMX_DirOutput)
@@ -2266,18 +2266,15 @@ gst_omx_port_wait_enabled (GstOMXPort * port, GstClockTime timeout)
gboolean
gst_omx_port_is_enabled (GstOMXPort * port)
{
- GstOMXComponent *comp;
gboolean enabled;
g_return_val_if_fail (port != NULL, FALSE);
- comp = port->comp;
-
gst_omx_port_update_port_definition (port, NULL);
enabled = ! !port->port_def.bEnabled;
- GST_DEBUG_OBJECT (comp->parent, "%s port %u is enabled: %d", comp->name,
- port->index, enabled);
+ GST_DEBUG_OBJECT (port->comp->parent, "%s port %u is enabled: %d",
+ port->comp->name, port->index, enabled);
return enabled;
}