diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-09-03 21:14:37 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-09-03 21:35:26 +0200 |
commit | 8bd5df3ac110feecfd5732f3a7c4d687c63d9155 (patch) | |
tree | dbfff3ede49723c325848eb7773b45b2bc1dd7f1 /video | |
parent | 98b9d474822b93b846e36231f46d409994362d3a (diff) | |
download | mpv-8bd5df3ac110feecfd5732f3a7c4d687c63d9155.tar.bz2 mpv-8bd5df3ac110feecfd5732f3a7c4d687c63d9155.tar.xz |
wayland: only save current mode of outputs
Other ones are not needed.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/wayland_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index c7cbf2fb2f..ade9142cac 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -177,7 +177,8 @@ static void output_handle_mode(void *data, { struct vo_wayland_output *output = data; - if (!output) + // only save current mode + if (!output || !(flags & WL_OUTPUT_MODE_CURRENT)) return; output->width = width; |