From 24fc176dfb0219bea6b9327b5299b6bb7d755732 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 16 Jan 2016 23:23:44 +0100 Subject: 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. --- player/command.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'player/command.c') 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) { -- cgit v1.2.3