From d262d36623546b07a73c156462a1b3b4b920986a Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 24 Sep 2013 16:21:11 +0200 Subject: tests: simple-decoder: fix for non-X11 backends. Don't try to create pixmaps if we have not requested that feature. This fixes execution for non-X11 backends, and most specifically DRM video output mode. --- tests/simple-decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/simple-decoder.c b/tests/simple-decoder.c index 5b50c877..3c434d06 100644 --- a/tests/simple-decoder.c +++ b/tests/simple-decoder.c @@ -498,7 +498,7 @@ renderer_process(App *app, RenderFrame *rfp) ensure_window_size(app, surface); crop_rect = gst_vaapi_surface_proxy_get_crop_rect(rfp->proxy); - if (!ensure_pixmaps(app, surface, crop_rect)) + if (g_use_pixmap && !ensure_pixmaps(app, surface, crop_rect)) SEND_ERROR("failed to create intermediate pixmaps"); if (!gst_vaapi_surface_sync(surface)) -- cgit v1.2.1