plugins/elements/gstfilesrc.c: Printf fixes for PPC/OSX, take two (#369366).
authorTim-Philipp Müller <tim@centricular.net>
Thu, 2 Nov 2006 20:52:21 +0000 (20:52 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 2 Nov 2006 20:52:21 +0000 (20:52 +0000)
Original commit message from CVS:
* plugins/elements/gstfilesrc.c: (gst_file_src_create_mmap):
Printf fixes for PPC/OSX, take two (#369366).

ChangeLog
plugins/elements/gstfilesrc.c

index 6d1e634..06a1140 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-11-02  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * plugins/elements/gstfilesrc.c: (gst_file_src_create_mmap):
+         Printf fixes for PPC/OSX, take two (#369366).
+
+2006-11-02  Tim-Philipp Müller  <tim at centricular dot net>
+
        Based on patch by: Jan David Mol  <j.j.d.mol at tudelft nl>
 
        * plugins/elements/gstfilesink.c: (gst_file_sink_class_init):
index 0511154..9e192be 100644 (file)
@@ -705,9 +705,9 @@ gst_file_src_create_mmap (GstFileSrc * src, guint64 offset, guint length,
 
       off_t nextmap = offset - (offset % src->mapsize);
 
-      GST_LOG_OBJECT (src,
-          "read buf %llu+%d in new mapbuf at %llu+%d, mapping and subbuffering",
-          offset, readsize, nextmap, src->mapsize);
+      GST_LOG_OBJECT (src, "read buf %" G_GUINT64_FORMAT "+%d in new mapbuf "
+          "at %" G_GUINT64_FORMAT "+%d, mapping and subbuffering",
+          offset, (gint) readsize, (guint64) nextmap, (gint) src->mapsize);
       /* first, we're done with the old mapbuf */
       gst_buffer_unref (src->mapbuf);
       mapsize = src->mapsize;
@@ -715,7 +715,7 @@ gst_file_src_create_mmap (GstFileSrc * src, guint64 offset, guint length,
       /* double the mapsize as long as the readsize is smaller */
       while (readsize + offset > nextmap + mapsize) {
         GST_LOG_OBJECT (src, "readsize smaller then mapsize %08x %d",
-            readsize, (int) mapsize);
+            (guint) readsize, (gint) mapsize);
         mapsize <<= 1;
       }
       /* create a new one */