mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
filesink, filesrc: printf format fixes
gstfilesink.c:399: error: format ‘%d’ expects type ‘int’, but argument 8 has type ‘size_t’ gstfilesink.c:399: error: format ‘%d’ expects type ‘int’, but argument 9 has type ‘gsize’ gstfilesrc.c:588: error: format ‘%08llx’ expects type ‘long long unsigned int’, but argument 8 has type ‘off_t’
This commit is contained in:
parent
c92178827b
commit
5351298266
2 changed files with 6 additions and 6 deletions
|
@ -381,7 +381,7 @@ gst_file_sink_open_file (GstFileSink * sink)
|
|||
|
||||
/* see if we are asked to perform a specific kind of buffering */
|
||||
if ((mode = sink->buffer_mode) != -1) {
|
||||
gsize buffer_size;
|
||||
guint buffer_size;
|
||||
|
||||
/* free previous buffer if any */
|
||||
g_free (sink->buffer);
|
||||
|
@ -396,10 +396,10 @@ gst_file_sink_open_file (GstFileSink * sink)
|
|||
buffer_size = sink->buffer_size;
|
||||
}
|
||||
#ifdef HAVE_STDIO_EXT_H
|
||||
GST_DEBUG_OBJECT (sink, "change buffer size %d to %d, mode %d",
|
||||
__fbufsize (sink->file), buffer_size, mode);
|
||||
GST_DEBUG_OBJECT (sink, "change buffer size %u to %u, mode %d",
|
||||
(guint) __fbufsize (sink->file), buffer_size, mode);
|
||||
#else
|
||||
GST_DEBUG_OBJECT (sink, "change buffer size to %d, mode %d",
|
||||
GST_DEBUG_OBJECT (sink, "change buffer size to %u, mode %d",
|
||||
sink->buffer_size, mode);
|
||||
#endif
|
||||
if (setvbuf (sink->file, sink->buffer, mode, buffer_size) != 0) {
|
||||
|
|
|
@ -585,8 +585,8 @@ gst_file_src_map_region (GstFileSrc * src, off_t offset, gsize size,
|
|||
|
||||
g_return_val_if_fail (offset >= 0, NULL);
|
||||
|
||||
GST_LOG_OBJECT (src, "mapping region %08llx+%08lx from file into memory",
|
||||
offset, (gulong) size);
|
||||
GST_LOG_OBJECT (src, "mapping region %08" G_GOFFSET_MODIFIER "x+%08lx "
|
||||
"from file into memory", (goffset) offset, (gulong) size);
|
||||
|
||||
mmapregion = mmap (NULL, size, PROT_READ, MAP_SHARED, src->fd, offset);
|
||||
|
||||
|
|
Loading…
Reference in a new issue