summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorRaimo Järvi <raimo.jarvi@gmail.com>2012-05-05 20:01:46 +0300
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-05-05 19:45:42 +0100
commit93ad7a4d06db89bae40ab6bfa5b1b7a2e614d268 (patch)
tree3ca7f68a28e7d7ba795124ec5e8d1c2850079b3d /gst
parentb87f7345db2c998e37eae350ad880a2bb0d0f4cd (diff)
downloadgstreamer-plugins-bad-93ad7a4d06db89bae40ab6bfa5b1b7a2e614d268.tar.gz
Fix printf format compiler warnings on mingw-w64
https://bugzilla.gnome.org/show_bug.cgi?id=675520
Diffstat (limited to 'gst')
-rw-r--r--gst/asfmux/gstasfmux.c6
-rw-r--r--gst/asfmux/gstasfobjects.c3
-rw-r--r--gst/asfmux/gstrtpasfpay.c2
-rw-r--r--gst/camerabin2/gstwrappercamerabinsrc.c5
-rw-r--r--gst/hls/gsturidownloader.c2
-rw-r--r--gst/mpegtsdemux/tsdemux.c4
6 files changed, 12 insertions, 10 deletions
diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c
index 36addcee5..78b17dea7 100644
--- a/gst/asfmux/gstasfmux.c
+++ b/gst/asfmux/gstasfmux.c
@@ -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,
diff --git a/gst/asfmux/gstasfobjects.c b/gst/asfmux/gstasfobjects.c
index 206cb6812..27ebb2860 100644
--- a/gst/asfmux/gstasfobjects.c
+++ b/gst/asfmux/gstasfobjects.c
@@ -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;
diff --git a/gst/asfmux/gstrtpasfpay.c b/gst/asfmux/gstrtpasfpay.c
index aa6be2577..58feea62d 100644
--- a/gst/asfmux/gstrtpasfpay.c
+++ b/gst/asfmux/gstrtpasfpay.c
@@ -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");
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c
index f6dcabf1f..3a4bab6f8 100644
--- a/gst/camerabin2/gstwrappercamerabinsrc.c
+++ b/gst/camerabin2/gstwrappercamerabinsrc.c
@@ -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) {
diff --git a/gst/hls/gsturidownloader.c b/gst/hls/gsturidownloader.c
index 6cf34cb0d..bd59075c0 100644
--- a/gst/hls/gsturidownloader.c
+++ b/gst/hls/gsturidownloader.c
@@ -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);
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c
index a4336dcdc..647611e2c 100644
--- a/gst/mpegtsdemux/tsdemux.c
+++ b/gst/mpegtsdemux/tsdemux.c
@@ -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);