[Gstreamer-openmax] [PATCH 1/2] fixes for building for 64bit host

Rob Clark rob at ti.com
Wed Feb 24 17:55:46 PST 2010


---
 omx/gstomx_base_filter.c |   12 ++++++------
 omx/gstomx_base_sink.c   |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/omx/gstomx_base_filter.c b/omx/gstomx_base_filter.c
index 287f50c..b0353cb 100644
--- a/omx/gstomx_base_filter.c
+++ b/omx/gstomx_base_filter.c
@@ -40,11 +40,11 @@ log_buffer (GstOmxBaseFilter *self,
             OMX_BUFFERHEADERTYPE *omx_buffer)
 {
     GST_DEBUG_OBJECT (self, "omx_buffer: "
-                      "size=%" G_GUINT32_FORMAT ", "
-                      "len=%" G_GUINT32_FORMAT ", "
-                      "flags=%" G_GUINT32_FORMAT ", "
-                      "offset=%" G_GUINT32_FORMAT ", "
-                      "timestamp=%" G_GUINT64_FORMAT,
+                      "size=%lu, "
+                      "len=%lu, "
+                      "flags=%lu, "
+                      "offset=%lu, "
+                      "timestamp=%lld",
                       omx_buffer->nAllocLen, omx_buffer->nFilledLen, omx_buffer->nFlags,
                       omx_buffer->nOffset, omx_buffer->nTimeStamp);
 }
@@ -450,7 +450,7 @@ output_loop (gpointer data)
                 }
                 else
                 {
-                    GST_WARNING_OBJECT (self, "couldn't allocate buffer of size %" G_GUINT32_FORMAT,
+                    GST_WARNING_OBJECT (self, "couldn't allocate buffer of size %lu",
                                         omx_buffer->nFilledLen);
                 }
             }
diff --git a/omx/gstomx_base_sink.c b/omx/gstomx_base_sink.c
index b50564d..c1a2076 100644
--- a/omx/gstomx_base_sink.c
+++ b/omx/gstomx_base_sink.c
@@ -161,7 +161,7 @@ render (GstBaseSink *gst_base,
     gomx = self->gomx;
 
     GST_LOG_OBJECT (self, "begin");
-    GST_LOG_OBJECT (self, "gst_buffer: size=%lu", GST_BUFFER_SIZE (buf));
+    GST_LOG_OBJECT (self, "gst_buffer: size=%u", GST_BUFFER_SIZE (buf));
 
     GST_LOG_OBJECT (self, "state: %d", gomx->omx_state);
 
-- 
1.6.3.2





More information about the Gstreamer-openmax mailing list