From 176542857d4d764488ff3adb1ad1e1421e158dee Mon Sep 17 00:00:00 2001 From: Jimmy Ohn Date: Mon, 15 Jun 2020 17:50:15 +0900 Subject: [PATCH] mfx wayland display: Add output_handle_done listener function Add output_handle_done listener function to resolve NULL pointer call problem. Without this patch, below error is shown. listener function for opcode 1463118720 of is NULL Aborted (core dumped) --- gst-libs/mfx/wayland/gstmfxdisplay_wayland.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst-libs/mfx/wayland/gstmfxdisplay_wayland.c b/gst-libs/mfx/wayland/gstmfxdisplay_wayland.c index 9fba97c0..b9f806c6 100644 --- a/gst-libs/mfx/wayland/gstmfxdisplay_wayland.c +++ b/gst-libs/mfx/wayland/gstmfxdisplay_wayland.c @@ -85,9 +85,16 @@ output_handle_mode (void *data, struct wl_output *wl_output, } } +static void +output_handle_done (void *data, struct wl_output *wl_output) +{ + /* NOT IMPLEMENTED */ +} + static const struct wl_output_listener output_listener = { output_handle_geometry, output_handle_mode, + output_handle_done, }; /* DRM listeners for wl_drm interface */