wayland: mpv does not exit when the socket is closed
Mpv currently does not exit when the socket is closed. It instead just enters an infinite loop which prints "[vo/opengl] error occurred on the display fd". The wl_display_dispatch_*() functions return -1 and set errno to EPIPE when the socket is closed.
Hi, is there an easy way to reproduce this behavior?
Well, start weston, start mpv from a terminal outside of it and close weston.
Well, start weston, start mpv from a terminal outside of it and close weston.
Sounds easy enough :)
I will probably signal a CLOSE_WIN event that has the default action set to quit.
It can be set to something different in .mpv/input.conf like quit_watch_later or something else.
Commit 858dcee5f102fc7273e4ab1665e5230929a3c958 fixes it.
That was fast, thanks. :)