diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-09-17 19:56:47 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-09-17 19:57:16 +0100 |
commit | fade5a6d8a948f29dda3e67e449baca95f7ce52f (patch) | |
tree | 74e395da1d938589500fd21b6c90ac1c65c6e8d1 /gst/dvdspu | |
parent | d331f01e03ecef2f4e0d18c19e5ebc1d73d59bcd (diff) | |
download | gstreamer-plugins-bad-fade5a6d8a948f29dda3e67e449baca95f7ce52f.tar.gz |
dvdspu: pgs: fix printf format/argument mismatch in debug statements
Fixes compiler warnings when extra debugging is enabled at compile time.
Diffstat (limited to 'gst/dvdspu')
-rw-r--r-- | gst/dvdspu/gstspu-pgs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gst/dvdspu/gstspu-pgs.c b/gst/dvdspu/gstspu-pgs.c index 7e86a2961..e485817ea 100644 --- a/gst/dvdspu/gstspu-pgs.c +++ b/gst/dvdspu/gstspu-pgs.c @@ -592,14 +592,14 @@ parse_set_object_data (GstDVDSpu * dvdspu, guint8 type, guint8 * payload, payload += 3; PGS_DUMP ("%d bytes of RLE data, of %d bytes total.\n", - end - payload, obj->rle_data_size); + (int) (end - payload), obj->rle_data_size); obj->rle_data = g_realloc (obj->rle_data, obj->rle_data_size); obj->rle_data_used = end - payload; memcpy (obj->rle_data, payload, end - payload); payload = end; } else { - PGS_DUMP ("%d bytes of additional RLE data\n", end - payload); + PGS_DUMP ("%d bytes of additional RLE data\n", (int) (end - payload)); /* Check that the data chunk is for this object version, and fits in the buffer */ if (obj->rle_data_ver == obj_ver && obj->rle_data_used + end - payload <= obj->rle_data_size) { @@ -697,7 +697,7 @@ gstspu_exec_pgs_buffer (GstDVDSpu * dvdspu, GstBuffer * buf) } PGS_DUMP ("Begin dumping command buffer of size %u ts %" GST_TIME_FORMAT "\n", - end - pos, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf))); + (guint) (end - pos), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf))); do { type = *pos++; packet_len = GST_READ_UINT16_BE (pos); @@ -705,7 +705,7 @@ gstspu_exec_pgs_buffer (GstDVDSpu * dvdspu, GstBuffer * buf) if (pos + packet_len > end) { PGS_DUMP ("Invalid packet length %u (only have %u bytes)\n", packet_len, - end - pos); + (guint) (end - pos)); goto error; } @@ -715,7 +715,8 @@ gstspu_exec_pgs_buffer (GstDVDSpu * dvdspu, GstBuffer * buf) pos += packet_len; } while (pos + 3 <= end); - PGS_DUMP ("End dumping command buffer with %u bytes remaining\n", end - pos); + PGS_DUMP ("End dumping command buffer with %u bytes remaining\n", + (guint) (end - pos)); remaining = (gint) (pos - map.data); gst_buffer_unmap (buf, &map); return remaining; |