plugins/elements/gstfilesrc.c: Printf fixes for PPC/OSX, take two (#369366).

Original commit message from CVS:
* plugins/elements/gstfilesrc.c: (gst_file_src_create_mmap):
Printf fixes for PPC/OSX, take two (#369366).
This commit is contained in:
Tim-Philipp Müller 2006-11-02 20:52:21 +00:00
parent bd16d69148
commit 9e24b65bfa
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
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>

View 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 */