[Bug 797127] New: Build Error on linux: gstfilesink: format '%u' exprects argument of type 'unsigned int', but argument 10 has type 'guint64'

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Sep 12 00:07:49 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=797127

            Bug ID: 797127
           Summary: Build Error on linux: gstfilesink: format '%u'
                    exprects argument of type 'unsigned int', but argument
                    10 has type 'guint64'
    Classification: Platform
           Product: GStreamer
           Version: 1.14.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: myrandy1 at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 373610
  --> https://bugzilla.gnome.org/attachment.cgi?id=373610&action=edit
Screen shot of build error.

Dear all.

When I downloaded GStreamer source code and tried to build, this error occued
on gstfilesink.c like below:

1)
GST_DEBUG_OBJECT (sink,
 "Queueing buffer list of %u bytes (%u buffers) at offset"
 G_GSIZE_FORMAT, size, num_buffers,
 sink->current_pos + sink->current_buffer_size);
2)
GST_DEBUG_OBJECT (filesink,
 "Queueing buffer of %" G_GSIZE_FORMAT " bytes at offset"
 G_GSIZE_FORMAT, gst_buffer_get_size (buffer),
 filesink->current_pos + filesink->current_buffer_size);

In these 2 cases, G_GSIZE_FORMAT is defined as "%u" while sink->current_pos is
guint64, so this error occurs.

So I think these 2 line should be fixed like

1)
GST_DEBUG_OBJECT (sink,
 "Queueing buffer list of %u bytes (%u buffers) at offset %llu",
 size, num_buffers,
 sink->current_pos + sink->current_buffer_size);
2)
GST_DEBUG_OBJECT (filesink,
 "Queueing buffer of %" G_GSIZE_FORMAT " bytes at offset %llu",
 gst_buffer_get_size (buffer),
 filesink->current_pos + filesink->current_buffer_size);

Would you please check this??

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list