mirror of https://github.com/mpv-player/mpv
wayland: free dmabuf_feedback object
666cb91cf1
added dmabuf_feedback, but it
was never actually free'd on uninit. Because this function requires
wayland protocols 1.24, we have to wrap it in an #if. Also throw in some
minor cosmetic changes in here.
This commit is contained in:
parent
8ba4ace1f6
commit
667222dffa
|
@ -2137,16 +2137,21 @@ void vo_wayland_uninit(struct vo *vo)
|
|||
wl_registry_destroy(wl->registry);
|
||||
|
||||
if (wl->viewporter)
|
||||
wp_viewporter_destroy (wl->viewporter);
|
||||
wp_viewporter_destroy(wl->viewporter);
|
||||
|
||||
if (wl->viewport)
|
||||
wp_viewport_destroy (wl->viewport);
|
||||
wp_viewport_destroy(wl->viewport);
|
||||
|
||||
if (wl->video_viewport)
|
||||
wp_viewport_destroy (wl->video_viewport);
|
||||
wp_viewport_destroy(wl->video_viewport);
|
||||
|
||||
if (wl->dmabuf)
|
||||
zwp_linux_dmabuf_v1_destroy (wl->dmabuf);
|
||||
zwp_linux_dmabuf_v1_destroy(wl->dmabuf);
|
||||
|
||||
#if HAVE_WAYLAND_PROTOCOLS_1_24
|
||||
if (wl->dmabuf_feedback)
|
||||
zwp_linux_dmabuf_feedback_v1_destroy(wl->dmabuf_feedback);
|
||||
#endif
|
||||
|
||||
if (wl->seat)
|
||||
wl_seat_destroy(wl->seat);
|
||||
|
|
Loading…
Reference in New Issue