summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2024-02-28 16:56:46 +0100
committersfan5 <sfan5@live.de>2024-02-29 17:24:05 +0100
commitdec29e82ace45eddc910305d8e26de6b0022945b (patch)
treeefb18bb4bbb6c91601a6416b5286495f3d2eb2de
parent98f7f9e25ede8ffba43ecbca6cbc7037c5088b05 (diff)
downloadmpv-dec29e82ace45eddc910305d8e26de6b0022945b.tar.bz2
mpv-dec29e82ace45eddc910305d8e26de6b0022945b.tar.xz
wayland_common: read DND data in larger chunks
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index be42ad3854..582dc81f9e 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -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),
};