diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-07-23 15:17:03 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-07-24 15:57:57 +0200 |
commit | 9e0c97a3d3318322c9f1cd54c1a6af9468bf8b0f (patch) | |
tree | 359b122e2bea8e0ba25cbf2783337c37ae693440 /tests/test-surfaces.c | |
parent | 0c8dc604cb3e0e803f83e16a3d30e943cb24ebe9 (diff) | |
download | gst-vaapi-9e0c97a3d3318322c9f1cd54c1a6af9468bf8b0f.tar.gz |
tests: use common display and window creation routines.
Add new --output option to select the renderer. Use --list-outputs to
print a list of supported renderers.
Diffstat (limited to 'tests/test-surfaces.c')
-rw-r--r-- | tests/test-surfaces.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test-surfaces.c b/tests/test-surfaces.c index a6edb348..c236e5ee 100644 --- a/tests/test-surfaces.c +++ b/tests/test-surfaces.c @@ -21,7 +21,7 @@ #include <gst/vaapi/gstvaapisurface.h> #include <gst/vaapi/gstvaapisurfacepool.h> -#include <gst/vaapi/gstvaapidisplay_x11.h> +#include "output.h" #define MAX_SURFACES 4 @@ -46,9 +46,10 @@ main(int argc, char *argv[]) static const guint width = 320; static const guint height = 240; - gst_init(&argc, &argv); + if (!video_output_init(&argc, argv, NULL)) + g_error("failed to initialize video output subsystem"); - display = gst_vaapi_display_x11_new(NULL); + display = video_output_create_display(NULL); if (!display) g_error("could not create Gst/VA display"); @@ -126,6 +127,6 @@ main(int argc, char *argv[]) g_object_unref(pool); g_print("unref surface\n"); g_object_unref(surface); - gst_deinit(); + video_output_exit(); return 0; } |