path: root/tests
diff options
authorGwenole Beauchesne <>2013-09-24 16:21:11 +0200
committerGwenole Beauchesne <>2013-09-24 16:24:05 +0200
commitd262d36623546b07a73c156462a1b3b4b920986a (patch)
tree07eba5ca1237ce9776017248e119343f1ec63ed2 /tests
parent008eac1b7214dac272f3b0ab5356d4d92b70f931 (diff)
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.
Diffstat (limited to 'tests')
1 files changed, 1 insertions, 1 deletions
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))