mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
wayland_common: read DND data in larger chunks
This commit is contained in:
@@ -1569,7 +1569,7 @@ static void check_dnd_fd(struct vo_wayland_state *wl)
|
||||
|
||||
if (fdp.revents & POLLIN) {
|
||||
size_t data_read = 0;
|
||||
const size_t chunk_size = 1;
|
||||
const size_t chunk_size = 256;
|
||||
bstr file_list = {
|
||||
.start = talloc_zero_size(NULL, chunk_size),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user