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:40:06 +0200
commit82807bd9dd1d0a5d070b87f7ca889804081c737e (patch)
tree9a8abd439a1eb6df062409e42e4a66587e968e30
parent9d0763a91d3f640f35de72ee5e43b35fffcc1299 (diff)
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 7674829..6a9a052 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -346,15 +346,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;
@@ -368,8 +367,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)
@@ -2250,18 +2250,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;
}