mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 03:15:52 +00:00
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.
This commit is contained in:
parent
056901b2be
commit
24fc176dfb
@ -2776,6 +2776,13 @@ static int mp_property_aspect(void *ctx, struct m_property *prop,
|
|||||||
}
|
}
|
||||||
return M_PROPERTY_OK;
|
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: {
|
case M_PROPERTY_GET: {
|
||||||
float aspect = mpctx->opts->movie_aspect;
|
float aspect = mpctx->opts->movie_aspect;
|
||||||
if (mpctx->d_video && mpctx->vo_chain && aspect <= 0) {
|
if (mpctx->d_video && mpctx->vo_chain && aspect <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user