summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-17 19:08:17 +0200
committerwm4 <wm4@nowhere>2016-09-17 19:08:17 +0200
commitb44d0751643be3755c8d6a0201301a3733f59808 (patch)
tree2be3392ab55daa59740b5756cf43392e560d40da /player/command.c
parentb7d5cbd37506e10a2031b92fef1a9714cb63d617 (diff)
downloadmpv-b44d0751643be3755c8d6a0201301a3733f59808.tar.bz2
mpv-b44d0751643be3755c8d6a0201301a3733f59808.tar.xz
command: make window-scale redirect to option if no window created
For consistency with other properties that mirror options.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 381fc3e781..f4e2a0acd3 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2617,7 +2617,7 @@ static int mp_property_window_scale(void *ctx, struct m_property *prop,
MPContext *mpctx = ctx;
struct vo *vo = mpctx->video_out;
if (!vo)
- return M_PROPERTY_UNAVAILABLE;
+ return mp_property_generic_option(mpctx, prop, action, arg);
struct mp_image_params params = get_video_out_params(mpctx);
int vid_w, vid_h;