mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
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:
parent
bd16d69148
commit
9e24b65bfa
2 changed files with 9 additions and 4 deletions
|
@ -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>
|
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>
|
Based on patch by: Jan David Mol <j.j.d.mol at tudelft nl>
|
||||||
|
|
|
@ -705,9 +705,9 @@ gst_file_src_create_mmap (GstFileSrc * src, guint64 offset, guint length,
|
||||||
|
|
||||||
off_t nextmap = offset - (offset % src->mapsize);
|
off_t nextmap = offset - (offset % src->mapsize);
|
||||||
|
|
||||||
GST_LOG_OBJECT (src,
|
GST_LOG_OBJECT (src, "read buf %" G_GUINT64_FORMAT "+%d in new mapbuf "
|
||||||
"read buf %llu+%d in new mapbuf at %llu+%d, mapping and subbuffering",
|
"at %" G_GUINT64_FORMAT "+%d, mapping and subbuffering",
|
||||||
offset, readsize, nextmap, src->mapsize);
|
offset, (gint) readsize, (guint64) nextmap, (gint) src->mapsize);
|
||||||
/* first, we're done with the old mapbuf */
|
/* first, we're done with the old mapbuf */
|
||||||
gst_buffer_unref (src->mapbuf);
|
gst_buffer_unref (src->mapbuf);
|
||||||
mapsize = src->mapsize;
|
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 */
|
/* double the mapsize as long as the readsize is smaller */
|
||||||
while (readsize + offset > nextmap + mapsize) {
|
while (readsize + offset > nextmap + mapsize) {
|
||||||
GST_LOG_OBJECT (src, "readsize smaller then mapsize %08x %d",
|
GST_LOG_OBJECT (src, "readsize smaller then mapsize %08x %d",
|
||||||
readsize, (int) mapsize);
|
(guint) readsize, (gint) mapsize);
|
||||||
mapsize <<= 1;
|
mapsize <<= 1;
|
||||||
}
|
}
|
||||||
/* create a new one */
|
/* create a new one */
|
||||||
|
|
Loading…
Reference in a new issue