From 177f5d9e9cd0f053437789121f774596cae76f41 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Apr 2016 11:32:03 +0200 Subject: command: allow setting panscan etc. properties if no video is active In that case, it merely changes the underlying option value. --- player/command.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/player/command.c b/player/command.c index 8a4e9805f1..a0cf56db68 100644 --- a/player/command.c +++ b/player/command.c @@ -2324,12 +2324,9 @@ static int panscan_property_helper(void *ctx, struct m_property *prop, int action, void *arg) { MPContext *mpctx = ctx; - if (!mpctx->video_out - || vo_control(mpctx->video_out, VOCTRL_GET_PANSCAN, NULL) != VO_TRUE) - return M_PROPERTY_UNAVAILABLE; int r = mp_property_generic_option(mpctx, prop, action, arg); - if (action == M_PROPERTY_SET) + if (mpctx->video_out && action == M_PROPERTY_SET) vo_control(mpctx->video_out, VOCTRL_SET_PANSCAN, NULL); return r; } -- cgit v1.2.3