mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
wayland: allow vo_wayland_uninit(NULL)
This commit is contained in:
@@ -948,6 +948,9 @@ int vo_wayland_init(struct vo *vo)
|
||||
void vo_wayland_uninit(struct vo *vo)
|
||||
{
|
||||
struct vo_wayland_state *wl = vo->wayland;
|
||||
if (!wl)
|
||||
return;
|
||||
|
||||
destroy_cursor(wl);
|
||||
destroy_window(wl);
|
||||
destroy_input(wl);
|
||||
|
||||
Reference in New Issue
Block a user