From 96ce1bc761b35d1dd49f99adc33c8c6ec451f37f Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 27 Jan 2015 11:44:12 +0100 Subject: 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. --- tests/test-surfaces.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') 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"); -- cgit v1.2.3