mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
008eac1b72
commit
d262d36623
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue