[vlc-devel] [PATCH] Wayland shm output module: Use defined constant instead of magic number
Sandeep
sandy.8925 at gmail.com
Sun Jan 20 17:39:40 CET 2019
---
modules/video_output/wayland/shm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/wayland/shm.c
b/modules/video_output/wayland/shm.c
index 5616e6c6c1..54ebce727b 100644
--- a/modules/video_output/wayland/shm.c
+++ b/modules/video_output/wayland/shm.c
@@ -258,7 +258,7 @@ static void registry_global_cb(void *data, struct
wl_registry *registry,
&wp_viewporter_interface, 1);
else
if (!strcmp(iface, "wl_compositor"))
- sys->use_buffer_transform = vers >= 2;
+ sys->use_buffer_transform = vers >=
WL_SURFACE_SET_BUFFER_TRANSFORM_SINCE_VERSION;
}
static void registry_global_remove_cb(void *data, struct wl_registry *registry,
--
2.20.1
More information about the vlc-devel
mailing list