OMX_U32 index = msg->content.port_settings_changed.port;
GList *outports = NULL, *l, *k;
- GST_DEBUG_OBJECT (comp->parent, "%s settings changed (port %u)",
+ GST_DEBUG_OBJECT (comp->parent, "%s settings changed (port %lu)",
comp->name, index);
/* FIXME: This probably can be done better */
if (!port)
break;
- GST_DEBUG_OBJECT (comp->parent, "%s port %u got buffer flags 0x%08x",
+ GST_DEBUG_OBJECT (comp->parent, "%s port %u got buffer flags 0x%08lx",
comp->name, port->index, flags);
if ((flags & OMX_BUFFERFLAG_EOS)
&& port->port_def.eDir == OMX_DirOutput)
msg->type = GST_OMX_MESSAGE_FLUSH;
msg->content.flush.port = nData2;
- GST_DEBUG_OBJECT (comp->parent, "%s port %u flushed", comp->name,
+ GST_DEBUG_OBJECT (comp->parent, "%s port %lu flushed", comp->name,
msg->content.flush.port);
gst_omx_component_send_message (comp, msg);
msg->type = GST_OMX_MESSAGE_PORT_ENABLE;
msg->content.port_enable.port = nData2;
msg->content.port_enable.enable = (cmd == OMX_CommandPortEnable);
- GST_DEBUG_OBJECT (comp->parent, "%s port %u %s", comp->name,
+ GST_DEBUG_OBJECT (comp->parent, "%s port %lu %s", comp->name,
msg->content.port_enable.port,
(msg->content.port_enable.enable ? "enabled" : "disabled"));
msg->type = GST_OMX_MESSAGE_PORT_SETTINGS_CHANGED;
msg->content.port_settings_changed.port = index;
- GST_DEBUG_OBJECT (comp->parent, "%s settings changed (port index: %d)",
+ GST_DEBUG_OBJECT (comp->parent, "%s settings changed (port index: %lu)",
comp->name, msg->content.port_settings_changed.port);
gst_omx_component_send_message (comp, msg);
msg->type = GST_OMX_MESSAGE_BUFFER_FLAG;
msg->content.buffer_flag.port = nData1;
msg->content.buffer_flag.flags = nData2;
- GST_DEBUG_OBJECT (comp->parent, "%s port %u got buffer flags 0x%08x",
+ GST_DEBUG_OBJECT (comp->parent, "%s port %lu got buffer flags 0x%08lx",
comp->name, msg->content.buffer_flag.port,
msg->content.buffer_flag.flags);
OMX_ErrorBadParameter);
GST_INFO_OBJECT (comp->parent,
- "Allocating %d buffers of size %u for %s port %u", n,
+ "Allocating %d buffers of size %lu for %s port %u", n,
port->port_def.nBufferSize, comp->name, port->index);
if (!port->buffers)
in_port_index = 0;
out_port_index = 1;
} else {
- GST_DEBUG_OBJECT (self, "Detected %u ports, starting at %u", param.nPorts,
- param.nStartPortNumber);
+ GST_DEBUG_OBJECT (self, "Detected %lu ports, starting at %lu",
+ param.nPorts, param.nStartPortNumber);
in_port_index = param.nStartPortNumber + 0;
out_port_index = param.nStartPortNumber + 1;
}
goto eos;
}
- GST_DEBUG_OBJECT (self, "Handling buffer: 0x%08x %lu", buf->omx_buf->nFlags,
- buf->omx_buf->nTimeStamp);
+ GST_DEBUG_OBJECT (self, "Handling buffer: 0x%08lx %" G_GUINT64_FORMAT,
+ buf->omx_buf->nFlags, (guint64) buf->omx_buf->nTimeStamp);
/* This prevents a deadlock between the srcpad stream
* lock and the videocodec stream lock, if ::reset()
full_buffer:
{
GST_ELEMENT_ERROR (self, LIBRARY, FAILED, (NULL),
- ("Got OpenMAX buffer with no free space (%p, %u/%u)", buf,
+ ("Got OpenMAX buffer with no free space (%p, %lu/%lu)", buf,
buf->omx_buf->nOffset, buf->omx_buf->nAllocLen));
return GST_FLOW_ERROR;
}
"Setting profile/level not supported by component");
} else if (err != OMX_ErrorNone) {
GST_ERROR_OBJECT (self,
- "Error setting profile %d and level %d: %s (0x%08x)", param.eProfile,
+ "Error setting profile %lu and level %lu: %s (0x%08x)", param.eProfile,
param.eLevel, gst_omx_error_to_string (err), err);
return FALSE;
}
"Setting profile/level not supported by component");
} else if (err != OMX_ErrorNone) {
GST_ERROR_OBJECT (self,
- "Error setting profile %d and level %d: %s (0x%08x)", param.eProfile,
+ "Error setting profile %lu and level %lu: %s (0x%08x)", param.eProfile,
param.eLevel, gst_omx_error_to_string (err), err);
return FALSE;
}
"Setting profile/level not supported by component");
} else if (err != OMX_ErrorNone) {
GST_ERROR_OBJECT (self,
- "Error setting profile %d and level %d: %s (0x%08x)", param.eProfile,
+ "Error setting profile %lu and level %lu: %s (0x%08x)", param.eProfile,
param.eLevel, gst_omx_error_to_string (err), err);
return FALSE;
}
in_port_index = 0;
out_port_index = 1;
} else {
- GST_DEBUG_OBJECT (self, "Detected %u ports, starting at %u", param.nPorts,
- param.nStartPortNumber);
+ GST_DEBUG_OBJECT (self, "Detected %lu ports, starting at %lu",
+ param.nPorts, param.nStartPortNumber);
in_port_index = param.nStartPortNumber + 0;
out_port_index = param.nStartPortNumber + 1;
}
if (vinfo->width != port_def->format.video.nFrameWidth ||
vinfo->height != port_def->format.video.nFrameHeight) {
- GST_ERROR_OBJECT (self, "Resolution do not match. port: %dx%d vinfo: %dx%d",
+ GST_ERROR_OBJECT (self, "Resolution do not match: port=%lux%lu vinfo=%dx%d",
port_def->format.video.nFrameWidth, port_def->format.video.nFrameHeight,
vinfo->width, vinfo->height);
goto done;
}
GST_DEBUG_OBJECT (self,
- "Setting output state: format %s, width %d, height %d",
+ "Setting output state: format %s, width %lu, height %lu",
gst_video_format_to_string (format),
port_def.format.video.nFrameWidth, port_def.format.video.nFrameHeight);
}
GST_DEBUG_OBJECT (self,
- "Setting output state: format %s, width %d, height %d",
+ "Setting output state: format %s, width %lu, height %lu",
gst_video_format_to_string (format),
port_def.format.video.nFrameWidth,
port_def.format.video.nFrameHeight);
goto flushing;
}
- GST_DEBUG_OBJECT (self, "Handling buffer: 0x%08x %lu",
- buf->omx_buf->nFlags, buf->omx_buf->nTimeStamp);
+ GST_DEBUG_OBJECT (self, "Handling buffer: 0x%08lx %" G_GUINT64_FORMAT,
+ buf->omx_buf->nFlags, (guint64) buf->omx_buf->nTimeStamp);
GST_VIDEO_DECODER_STREAM_LOCK (self);
frame = _find_nearest_frame (self, buf);
m->format = GST_VIDEO_FORMAT_I420;
m->type = param.eColorFormat;
negotiation_map = g_list_append (negotiation_map, m);
- GST_DEBUG_OBJECT (self, "Component supports I420 (%d) at index %d",
+ GST_DEBUG_OBJECT (self, "Component supports I420 (%d) at index %lu",
param.eColorFormat, param.nIndex);
break;
case OMX_COLOR_FormatYUV420SemiPlanar:
m->format = GST_VIDEO_FORMAT_NV12;
m->type = param.eColorFormat;
negotiation_map = g_list_append (negotiation_map, m);
- GST_DEBUG_OBJECT (self, "Component supports NV12 (%d) at index %d",
+ GST_DEBUG_OBJECT (self, "Component supports NV12 (%d) at index %lu",
param.eColorFormat, param.nIndex);
break;
default:
GST_DEBUG_OBJECT (self,
- "Component supports unsupported color format %d at index %d",
+ "Component supports unsupported color format %d at index %lu",
param.eColorFormat, param.nIndex);
break;
}
{
gst_video_codec_frame_unref (frame);
GST_ELEMENT_ERROR (self, LIBRARY, FAILED, (NULL),
- ("Got OpenMAX buffer with no free space (%p, %u/%u)", buf,
+ ("Got OpenMAX buffer with no free space (%p, %lu/%lu)", buf,
buf->omx_buf->nOffset, buf->omx_buf->nAllocLen));
return GST_FLOW_ERROR;
}
{
gst_video_codec_frame_unref (frame);
GST_ELEMENT_ERROR (self, STREAM, FORMAT, (NULL),
- ("codec_data larger than supported by OpenMAX port (%u > %u)",
+ ("codec_data larger than supported by OpenMAX port (%lu > %lu)",
gst_buffer_get_size (codec_data),
self->dec_in_port->port_def.nBufferSize));
return GST_FLOW_ERROR;
in_port_index = 0;
out_port_index = 1;
} else {
- GST_DEBUG_OBJECT (self, "Detected %u ports, starting at %u", param.nPorts,
- param.nStartPortNumber);
+ GST_DEBUG_OBJECT (self, "Detected %lu ports, starting at %lu",
+ param.nPorts, param.nStartPortNumber);
in_port_index = param.nStartPortNumber + 0;
out_port_index = param.nStartPortNumber + 1;
}
goto flushing;
}
- GST_DEBUG_OBJECT (self, "Handling buffer: 0x%08x %lu", buf->omx_buf->nFlags,
- buf->omx_buf->nTimeStamp);
+ GST_DEBUG_OBJECT (self, "Handling buffer: 0x%08lx %" G_GUINT64_FORMAT,
+ buf->omx_buf->nFlags, (guint64) buf->omx_buf->nTimeStamp);
GST_VIDEO_ENCODER_STREAM_LOCK (self);
frame = _find_nearest_frame (self, buf);
m->format = GST_VIDEO_FORMAT_I420;
m->type = param.eColorFormat;
negotiation_map = g_list_append (negotiation_map, m);
- GST_DEBUG_OBJECT (self, "Component supports I420 (%d) at index %d",
+ GST_DEBUG_OBJECT (self, "Component supports I420 (%d) at index %ld",
param.eColorFormat, param.nIndex);
break;
case OMX_COLOR_FormatYUV420SemiPlanar:
m->format = GST_VIDEO_FORMAT_NV12;
m->type = param.eColorFormat;
negotiation_map = g_list_append (negotiation_map, m);
- GST_DEBUG_OBJECT (self, "Component supports NV12 (%d) at index %d",
+ GST_DEBUG_OBJECT (self, "Component supports NV12 (%d) at index %ld",
param.eColorFormat, param.nIndex);
break;
default:
GST_DEBUG_OBJECT (self,
- "Component supports unsupported color format %d at index %d",
+ "Component supports unsupported color format %d at index %ld",
param.eColorFormat, param.nIndex);
break;
}
full_buffer:
{
GST_ELEMENT_ERROR (self, LIBRARY, FAILED, (NULL),
- ("Got OpenMAX buffer with no free space (%p, %u/%u)", buf,
+ ("Got OpenMAX buffer with no free space (%p, %lu/%lu)", buf,
buf->omx_buf->nOffset, buf->omx_buf->nAllocLen));
gst_video_codec_frame_unref (frame);
return GST_FLOW_ERROR;