diff options
author | Kurt Kartaltepe <kkartaltepe@gmail.com> | 2021-11-24 16:40:31 -0800 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-11-25 04:09:31 +0000 |
commit | 79bfcc672343ddbc348e040ad899d61a0bafc050 (patch) | |
tree | 114f2d248b4984088585d09697e03be590f59392 /demux/codec_tags.h | |
parent | a6e5eba6ab5909bbd43fe11c8cb79d7e926aedb9 (diff) | |
download | mpv-79bfcc672343ddbc348e040ad899d61a0bafc050.tar.bz2 mpv-79bfcc672343ddbc348e040ad899d61a0bafc050.tar.xz |
wayland: cancel prepared reads when no events
A read can be prepared on the wayland display FD that is never actually
read. This occurs when events are triggered on other FDs in the fd set.
This change cancels a prepared read if poll reported no events for it.
This fixes some hangs due to how nvidia's EGL implementation polls on
the wayland fd unlike mesa implementations. It is based on nvidia's
proposed fix for qt's similar message pump in
https://codereview.qt-project.org/c/qt/qtwayland/+/373473
Signed-off-by: Kurt Kartaltepe <kkartaltepe@gmail.com>
Diffstat (limited to 'demux/codec_tags.h')
0 files changed, 0 insertions, 0 deletions