diff options
author | wm4 <wm4@nowhere> | 2016-01-16 23:23:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-16 23:23:44 +0100 |
commit | 24fc176dfb0219bea6b9327b5299b6bb7d755732 (patch) | |
tree | b0df5953f1157e393ac4188c2065b48389ec664d /player | |
parent | 056901b2be67072f41315fce26e0f58e5569be9a (diff) | |
download | mpv-24fc176dfb0219bea6b9327b5299b6bb7d755732.tar.bz2 mpv-24fc176dfb0219bea6b9327b5299b6bb7d755732.tar.xz |
command: modify OSD message when forcing original video aspect ratio
Not bothering with anything advanced, so we just show "(original)" if
the video-aspect property/option is reset.
Fixes #2722.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index 0ff38264e0..f86926c930 100644 --- a/player/command.c +++ b/player/command.c @@ -2776,6 +2776,13 @@ static int mp_property_aspect(void *ctx, struct m_property *prop, } return M_PROPERTY_OK; } + case M_PROPERTY_PRINT: { + if (mpctx->opts->movie_aspect <= 0) { + *(char **)arg = talloc_strdup(NULL, "(original)"); + return M_PROPERTY_OK; + } + break; + } case M_PROPERTY_GET: { float aspect = mpctx->opts->movie_aspect; if (mpctx->d_video && mpctx->vo_chain && aspect <= 0) { |