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.
This commit is contained in:
Gwenole Beauchesne 2013-09-24 16:21:11 +02:00
parent 008eac1b72
commit d262d36623

View file

@ -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))