mpv icon indicating copy to clipboard operation
mpv copied to clipboard

wayland: mpv does not exit when the socket is closed

Open giucam opened this issue 13 years ago • 5 comments

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.

giucam avatar Sep 18 '13 19:09 giucam

Hi, is there an easy way to reproduce this behavior?

giselher avatar Sep 18 '13 21:09 giselher

Well, start weston, start mpv from a terminal outside of it and close weston.

giucam avatar Sep 19 '13 08:09 giucam

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.

giselher avatar Sep 19 '13 09:09 giselher

Commit 858dcee5f102fc7273e4ab1665e5230929a3c958 fixes it.

giselher avatar Sep 19 '13 15:09 giselher

That was fast, thanks. :)

giucam avatar Sep 19 '13 15:09 giucam