diff options
-rw-r--r-- | player/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/player/command.c b/player/command.c index 1d872eacb7..55cb86cdb8 100644 --- a/player/command.c +++ b/player/command.c @@ -2310,15 +2310,15 @@ static int panscan_property_helper(void *ctx, struct m_property *prop, static int mp_property_vo_flag(struct m_property *prop, int action, void *arg, int vo_ctrl, int *vo_var, MPContext *mpctx) { - if (!mpctx->video_out) - return M_PROPERTY_UNAVAILABLE; - if (action == M_PROPERTY_SET) { int desired = !!*(int *) arg; if (*vo_var == desired) return M_PROPERTY_OK; - if (mpctx->video_out->config_ok) + if (mpctx->video_out) { vo_control(mpctx->video_out, vo_ctrl, 0); + } else { + *vo_var = desired; + } return *vo_var == desired ? M_PROPERTY_OK : M_PROPERTY_ERROR; } return mp_property_generic_option(mpctx, prop, action, arg); |