summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-03-31 17:37:01 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-03-31 17:37:36 +0100
commit61bc9091894062b97c93ce48375e76bccdbcc082 (patch)
treeed1f5cb129a03929d2c6ff23dde05a243d647716
parentc3651a79057f276f0c44f3620c23fbfed48f24b1 (diff)
tests: fix some printf format compiler warnings
-rw-r--r--tests/check/elements/vorbistag.c2
-rw-r--r--tests/check/libs/video.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/check/elements/vorbistag.c b/tests/check/elements/vorbistag.c
index 149871eec..9db10c870 100644
--- a/tests/check/elements/vorbistag.c
+++ b/tests/check/elements/vorbistag.c
@@ -217,7 +217,7 @@ _create_audio_buffer (void)
vorbis_bitrate_flushpacket (&vd, &packet);
buffer = gst_buffer_new_and_alloc (packet.bytes);
gst_buffer_fill (buffer, 0, packet.packet, packet.bytes);
- GST_DEBUG ("%p %d", packet.packet, packet.bytes);
+ GST_DEBUG ("%p %ld", packet.packet, packet.bytes);
vorbis_comment_clear (&vc);
vorbis_block_clear (&vb);
diff --git a/tests/check/libs/video.c b/tests/check/libs/video.c
index 3f7d16048..abbab1977 100644
--- a/tests/check/libs/video.c
+++ b/tests/check/libs/video.c
@@ -551,10 +551,10 @@ GST_START_TEST (test_video_formats)
off1 = GST_VIDEO_INFO_COMP_OFFSET (&vinfo, 1);
off2 = GST_VIDEO_INFO_COMP_OFFSET (&vinfo, 2);
- GST_INFO ("size %d <> %d", size, paintinfo.endptr);
- GST_INFO ("off0 %d <> %d", off0, paintinfo.yp);
- GST_INFO ("off1 %d <> %d", off1, paintinfo.up);
- GST_INFO ("off2 %d <> %d", off2, paintinfo.vp);
+ GST_INFO ("size %d <> %d", size, (int) ((guintptr) paintinfo.endptr));
+ GST_INFO ("off0 %d <> %d", off0, (int) ((guintptr) paintinfo.yp));
+ GST_INFO ("off1 %d <> %d", off1, (int) ((guintptr) paintinfo.up));
+ GST_INFO ("off2 %d <> %d", off2, (int) ((guintptr) paintinfo.vp));
fail_unless_equals_int (size, (unsigned long) paintinfo.endptr);
fail_unless_equals_int (off0, (unsigned long) paintinfo.yp);