Skip to content

Commit

Permalink
command: modify OSD message when forcing original video aspect ratio
Browse files Browse the repository at this point in the history
Not bothering with anything advanced, so we just show "(original)" if
the video-aspect property/option is reset.

Fixes #2722.
  • Loading branch information
wm4 committed Jan 16, 2016
1 parent 056901b commit 24fc176
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions player/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 24fc176

Please sign in to comment.