summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-09-03 21:14:37 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2014-09-03 21:35:26 +0200
commit8bd5df3ac110feecfd5732f3a7c4d687c63d9155 (patch)
treedbfff3ede49723c325848eb7773b45b2bc1dd7f1
parent98b9d474822b93b846e36231f46d409994362d3a (diff)
downloadmpv-8bd5df3ac110feecfd5732f3a7c4d687c63d9155.tar.bz2
mpv-8bd5df3ac110feecfd5732f3a7c4d687c63d9155.tar.xz
wayland: only save current mode of outputs
Other ones are not needed.
-rw-r--r--video/out/wayland_common.c3
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;