bcb66c8169f6c155382886bb0367832e81c51acb
[AGL/meta-agl.git] / meta-agl-bsp / meta-ti / recipes-arago / gstreamer / gstreamer1.0-plugins-bad / 0005-gstwaylandsink-Implement-callbacks-for-version-5-of-.patch
1 From adfc38273882a102d25fc420adc82b3f225588f9 Mon Sep 17 00:00:00 2001
2 From: Pooja Prajod <a0132412@ti.com>
3 Date: Mon, 27 Mar 2017 18:27:06 +0530
4 Subject: [PATCH] gstwaylandsink: Implement callbacks for version 5 of
5  wl_pointer
6
7 Few extra callbacks are required for wl_pointer listener
8 with the newer weston. Without the extra dummy callbacks
9 the pipelines results in segfault.
10
11 Signed-off-by: Pooja Prajod <a0132412@ti.com>
12 ---
13  ext/wayland/wldisplay.c | 22 +++++++++++++++++++++-
14  1 file changed, 21 insertions(+), 1 deletion(-)
15
16 diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c
17 index 2f58fd2..54acfdb 100644
18 --- a/ext/wayland/wldisplay.c
19 +++ b/ext/wayland/wldisplay.c
20 @@ -326,12 +326,25 @@ pointer_handle_axis (void *data, struct wl_pointer *pointer,
21  {
22  }
23  
24 +static void pointer_frame(void *data, struct wl_pointer *wl_pointer)
25 +{
26 +}
27 +static void pointer_axis_source(void *data, struct wl_pointer *wl_pointer, uint32_t axis_source)
28 +{
29 +}
30 +void pointer_axis_stop(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis)
31 +{
32 +}
33 +
34  static const struct wl_pointer_listener pointer_listener = {
35    pointer_handle_enter,
36    pointer_handle_leave,
37    pointer_handle_motion,
38    pointer_handle_button,
39    pointer_handle_axis,
40 +  pointer_frame,
41 +  pointer_axis_source,
42 +  pointer_axis_stop
43  };
44  
45  static void
46 @@ -508,8 +521,15 @@ registry_handle_global (void *data, struct wl_registry *registry,
47    }
48  }
49  
50 +static void
51 +registry_handle_global_remove(void *data, struct wl_registry *registry,
52 +                uint32_t name)
53 +{
54 +}
55 +
56  static const struct wl_registry_listener registry_listener = {
57 -  registry_handle_global
58 +  registry_handle_global,
59 +  registry_handle_global_remove
60  };
61  
62  static gpointer
63 -- 
64 1.9.1
65