gstreamer/tests/examples/meson.build
Michael Olbrich 24be7b8aae test: vaapicontext: support wayland display
On Wayland, The whole gtk window is one Wayland surface. So
gtk_widget_get_window() must be called on the top-level widget.
For any other widget the following gdk_window_ensure_native() may create a
new top-level Wayland surface that is never visible.

As a result, the coordinates passed to
gst_video_overlay_set_render_rectangle() must be relativ to the top-level
window. Otherwise the video is placed incorrectly.

Original-Patch-By: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/342>
2020-07-31 14:02:33 +02:00

29 lines
758 B
Meson

examples = [
'test-vaapisink',
'test-vaapipostproc',
'test-roi',
]
foreach example : examples
executable(example, '@0@.c'.format(example),
c_args : gstreamer_vaapi_args,
include_directories: [configinc, libsinc],
dependencies : [gst_dep, gstvideo_dep],
install: false)
endforeach
if USE_X11 and USE_WAYLAND
if gtk_dep.found()
executable('test-vaapicontext', 'test-vaapicontext.c',
c_args : gstreamer_vaapi_args,
include_directories: [configinc, libsinc],
dependencies : [ gst_dep,
gstvideo_dep,
libva_dep,
x11_dep,
gtk_dep,
libva_wayland_dep,
libva_x11_dep ],
install: false)
endif
endif