summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2015-05-12 16:04:33 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2015-05-12 16:04:33 +0200
commitc5756a91575fa4d93aa8c6c58be97ca732ce530b (patch)
tree18ff307ad99602316938169939cb79095a7ca12a /tests
parent3024640d4f7b0dd5450e99e8c0ec3dcda9c48a8d (diff)
tests: simple-encoder: fix build warnings on 64-bit platforms.
Add a cosmetic change to replace VAAPI buffer with VA buffer and most importantly fix warnings spitted out during build on 64-bit platforms. ../../tests/simple-encoder.c:211:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘gssize’ [-Wformat=] g_warning ("Invalid VAAPI buffer size (%d)", size); ^ ../../tests/simple-encoder.c:217:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘gssize’ [-Wformat=] g_warning ("Failed to create output buffer of size %d", size); ^
Diffstat (limited to 'tests')
-rw-r--r--tests/simple-encoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/simple-encoder.c b/tests/simple-encoder.c
index 1a6f32c5..ff9ddcbe 100644
--- a/tests/simple-encoder.c
+++ b/tests/simple-encoder.c
@@ -208,18 +208,18 @@ allocate_buffer (GstVaapiCodedBuffer * vbuf)
size = gst_vaapi_coded_buffer_get_size (vbuf);
if (size <= 0) {
- g_warning ("Invalid VAAPI buffer size (%d)", size);
+ g_warning ("Invalid VA buffer size (%zd)", size);
return NULL;
}
buf = gst_buffer_new_and_alloc (size);
if (!buf) {
- g_warning ("Failed to create output buffer of size %d", size);
+ g_warning ("Failed to create output buffer of size %zd", size);
return NULL;
}
if (!gst_vaapi_coded_buffer_copy_into (buf, vbuf)) {
- g_warning ("Failed to copy VAAPI buffer data");
+ g_warning ("Failed to copy VA buffer data");
gst_buffer_unref (buf);
return NULL;
}