summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2015-01-27 11:44:12 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2015-01-27 18:11:45 +0100
commit96ce1bc761b35d1dd49f99adc33c8c6ec451f37f (patch)
treea0a3c559a00ba5b809d18a89fd6dd8c72aa0d228 /tests
parente4e43cd842868c7acbcab80a73c319d9cea7dffa (diff)
videopool: add optional flags for surface pool allocation.
Reword surface pool allocation helpers so that to allow for a simple form, e.g. gst_vaapi_surface_pool_new(format, width, height); and a somewhat more elaborated/flexible form with optional allocation flags and precise GstVideoInfo specification. This is an API/ABI change, and SONAME version needs to be bumped.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-surfaces.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test-surfaces.c b/tests/test-surfaces.c
index c958e075..734774f5 100644
--- a/tests/test-surfaces.c
+++ b/tests/test-surfaces.c
@@ -36,7 +36,6 @@ main(int argc, char *argv[])
GstVaapiID surface_id;
GstVaapiSurface *surfaces[MAX_SURFACES];
GstVaapiVideoPool *pool;
- GstVideoInfo vi;
gint i;
static const GstVaapiChromaType chroma_type = GST_VAAPI_CHROMA_TYPE_YUV420;
@@ -60,9 +59,8 @@ main(int argc, char *argv[])
gst_vaapi_object_unref(surface);
- gst_video_info_set_format(&vi, GST_VIDEO_FORMAT_ENCODED, width, height);
-
- pool = gst_vaapi_surface_pool_new(display, &vi);
+ pool = gst_vaapi_surface_pool_new(display, GST_VIDEO_FORMAT_ENCODED,
+ width, height);
if (!pool)
g_error("could not create Gst/VA surface pool");