diff options
author | wm4 <wm4@nowhere> | 2016-04-15 11:32:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-15 11:32:40 +0200 |
commit | 177f5d9e9cd0f053437789121f774596cae76f41 (patch) | |
tree | 5345b788a72892bc1b851976a89852a1841ebca7 /player | |
parent | a9bd4535d2eac283824d8598aa17f1f44f83a74a (diff) | |
download | mpv-177f5d9e9cd0f053437789121f774596cae76f41.tar.bz2 mpv-177f5d9e9cd0f053437789121f774596cae76f41.tar.xz |
command: allow setting panscan etc. properties if no video is active
In that case, it merely changes the underlying option value.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 5 |
1 files changed, 1 insertions, 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; } |