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):
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;
/* 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 */