mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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); ^
This commit is contained in:
parent
3024640d4f
commit
c5756a9157
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue