mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
gl/wayland: Don't prefix wl_shell struct field
As part of commit 808e7127
, we prefixed the `GstWlWindow`'s `shell`
field with wl_, to differentiate it from the other types of shells a
Wayland compositor might support. However, this is apparently a struct
that we expose to our users, so changing it means we have an API break.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/592
This commit is contained in:
parent
5f19e83f14
commit
e8450397c0
3 changed files with 4 additions and 5 deletions
|
@ -76,8 +76,7 @@ registry_handle_global (void *data, struct wl_registry *registry,
|
|||
xdg_wm_base_add_listener (priv->xdg_wm_base, &xdg_wm_base_listener,
|
||||
display);
|
||||
} else if (g_strcmp0 (interface, "wl_shell") == 0) {
|
||||
display->wl_shell =
|
||||
wl_registry_bind (registry, name, &wl_shell_interface, 1);
|
||||
display->shell = wl_registry_bind (registry, name, &wl_shell_interface, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -119,7 +118,7 @@ gst_gl_display_wayland_finalize (GObject * object)
|
|||
GstGLDisplayWaylandPrivate *priv =
|
||||
gst_gl_display_wayland_get_instance_private (display_wayland);
|
||||
|
||||
g_clear_pointer (&display_wayland->wl_shell, wl_shell_destroy);
|
||||
g_clear_pointer (&display_wayland->shell, wl_shell_destroy);
|
||||
g_clear_pointer (&priv->xdg_wm_base, xdg_wm_base_destroy);
|
||||
|
||||
/* Cause eglTerminate() to occur before wl_display_disconnect()
|
||||
|
|
|
@ -58,7 +58,7 @@ struct _GstGLDisplayWayland
|
|||
struct wl_subcompositor *subcompositor;
|
||||
|
||||
/* Basic shell, see private struct for others (e.g. XDG-shell) */
|
||||
struct wl_shell *wl_shell;
|
||||
struct wl_shell *shell;
|
||||
|
||||
/* <private> */
|
||||
gboolean foreign_display;
|
||||
|
|
|
@ -342,7 +342,7 @@ create_wl_shell_surface (GstGLWindowWaylandEGL * window_egl)
|
|||
|
||||
GST_DEBUG ("Creating surfaces for wl-shell");
|
||||
|
||||
wl_shell_surface = wl_shell_get_shell_surface (display->wl_shell,
|
||||
wl_shell_surface = wl_shell_get_shell_surface (display->shell,
|
||||
window_egl->window.surface);
|
||||
|
||||
if (window_egl->window.queue) {
|
||||
|
|
Loading…
Reference in a new issue