mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Fix printf format compiler warnings on mingw-w64
https://bugzilla.gnome.org/show_bug.cgi?id=675520
This commit is contained in:
parent
b87f7345db
commit
93ad7a4d06
6 changed files with 12 additions and 10 deletions
|
@ -1413,8 +1413,8 @@ gst_asf_mux_send_packet (GstAsfMux * asfmux, GstBuffer * buf)
|
|||
g_assert (gst_buffer_get_size (buf) == asfmux->packet_size);
|
||||
asfmux->total_data_packets++;
|
||||
GST_LOG_OBJECT (asfmux,
|
||||
"Pushing a packet of size %u and timestamp %" G_GUINT64_FORMAT,
|
||||
gst_buffer_get_size (buf), GST_BUFFER_TIMESTAMP (buf));
|
||||
"Pushing a packet of size %" G_GSIZE_FORMAT " and timestamp %"
|
||||
G_GUINT64_FORMAT, gst_buffer_get_size (buf), GST_BUFFER_TIMESTAMP (buf));
|
||||
GST_LOG_OBJECT (asfmux, "Total data packets: %" G_GUINT64_FORMAT,
|
||||
asfmux->total_data_packets);
|
||||
return gst_asf_mux_push_buffer (asfmux, buf);
|
||||
|
@ -1497,7 +1497,7 @@ gst_asf_mux_flush_payloads (GstAsfMux * asfmux)
|
|||
payload->media_object_size);
|
||||
GST_DEBUG_OBJECT (asfmux, "replicated data length: %d",
|
||||
(gint) payload->replicated_data_length);
|
||||
GST_DEBUG_OBJECT (asfmux, "payload size: %u",
|
||||
GST_DEBUG_OBJECT (asfmux, "payload size: %" G_GSIZE_FORMAT,
|
||||
gst_buffer_get_size (payload->data));
|
||||
GST_DEBUG_OBJECT (asfmux, "presentation time: %" G_GUINT32_FORMAT " (%"
|
||||
GST_TIME_FORMAT ")", payload->presentation_time,
|
||||
|
|
|
@ -573,7 +573,8 @@ gst_asf_parse_packet (GstBuffer * buffer, GstAsfPacketInfo * packet,
|
|||
gst_buffer_map (buffer, &map, GST_MAP_READ);
|
||||
reader = gst_byte_reader_new (map.data, map.size);
|
||||
|
||||
GST_LOG ("Starting packet parsing, size: %u", gst_buffer_get_size (buffer));
|
||||
GST_LOG ("Starting packet parsing, size: %" G_GSIZE_FORMAT,
|
||||
gst_buffer_get_size (buffer));
|
||||
if (!gst_byte_reader_get_uint8 (reader, &first))
|
||||
goto error;
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ gst_rtp_asf_pay_handle_packet (GstRtpAsfPay * rtpasfpay, GstBuffer * buffer)
|
|||
size_left = gst_rtp_buffer_get_payload_len (&rtp) - rtpasfpay->cur_off;
|
||||
|
||||
GST_DEBUG_OBJECT (rtpasfpay, "Input buffer bytes consumed: %"
|
||||
G_GUINT32_FORMAT "/%" G_GUINT32_FORMAT, packet_offset,
|
||||
G_GUINT32_FORMAT "/%" G_GSIZE_FORMAT, packet_offset,
|
||||
gst_buffer_get_size (buffer));
|
||||
|
||||
GST_DEBUG_OBJECT (rtpasfpay, "Output rtpbuffer status");
|
||||
|
|
|
@ -199,8 +199,9 @@ gst_wrapper_camera_bin_src_imgsrc_probe (GstPad * pad, GstPadProbeInfo * info,
|
|||
GstBuffer *buffer = GST_BUFFER (info->data);
|
||||
GstPadProbeReturn ret = GST_PAD_PROBE_DROP;
|
||||
|
||||
GST_LOG_OBJECT (self, "Image probe, mode %d, capture count %d bufsize: %u",
|
||||
camerasrc->mode, self->image_capture_count, gst_buffer_get_size (buffer));
|
||||
GST_LOG_OBJECT (self, "Image probe, mode %d, capture count %d bufsize: %"
|
||||
G_GSIZE_FORMAT, camerasrc->mode, self->image_capture_count,
|
||||
gst_buffer_get_size (buffer));
|
||||
|
||||
g_mutex_lock (&camerasrc->capturing_mutex);
|
||||
if (self->image_capture_count > 0) {
|
||||
|
|
|
@ -228,7 +228,7 @@ gst_uri_downloader_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
}
|
||||
|
||||
GST_LOG_OBJECT (downloader, "The uri fetcher received a new buffer "
|
||||
"of size %u", gst_buffer_get_size (buf));
|
||||
"of size %" G_GSIZE_FORMAT, gst_buffer_get_size (buf));
|
||||
if (!gst_fragment_add_buffer (downloader->priv->download, buf))
|
||||
GST_WARNING_OBJECT (downloader, "Could not add buffer to fragment");
|
||||
GST_OBJECT_UNLOCK (downloader);
|
||||
|
|
|
@ -1269,8 +1269,8 @@ gst_ts_demux_parse_pes_header (GstTSDemux * demux, TSDemuxStream * stream)
|
|||
}
|
||||
|
||||
/* Remove PES headers */
|
||||
GST_DEBUG ("Moving data forward by %d bytes (packet_size:%d, have:%d)",
|
||||
header.header_size, header.packet_length, map.size);
|
||||
GST_DEBUG ("Moving data forward by %d bytes (packet_size:%d, have:%"
|
||||
G_GSIZE_FORMAT ")", header.header_size, header.packet_length, map.size);
|
||||
stream->expected_size = header.packet_length;
|
||||
gst_buffer_resize (buf, header.header_size, map.size - header.header_size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue