Skip to content

Commit

Permalink
player/osd: use fixed width for vsync-ratio value in status line
Browse files Browse the repository at this point in the history
Makes status line more stable, without variable width.
  • Loading branch information
kasper93 committed Dec 28, 2024
1 parent 0417218 commit 7562a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static char *get_term_status_msg(struct MPContext *mpctx)
if (mpctx->vo_chain) {
if (mpctx->display_sync_active) {
char *r = mp_property_expand_string(mpctx,
"${?vsync-ratio:${vsync-ratio}}");
"${?vsync-ratio:${>vsync-ratio}}");
if (r[0]) {
saddf(&line, " DS: %s/%"PRId64, r,
vo_get_delayed_count(mpctx->video_out));
Expand Down

0 comments on commit 7562a79

Please sign in to comment.