mpv-player / mpv-player/mpv

Playlist OSD spans beyond screen with font sizes <30

Open
#11,684 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

Provide following Information:

  • mpv version - 0.35.1-dirty
  • Platform and Version - Arch Linux 2023-05-13; Xfce 4.18
  • Source of the mpv binary - official Arch Linux repos

If you're not using git master or the latest release, update.
Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps
  • Play a lot of files or a long playlist such that there are more entries than the F8 "Show Playlist" OSD can fit on the screen at once.
  • Set an OSD font size <30 (i didn't test every applicable value so this constraint might not be exhaustive)
  • The issue is reproducible even if no entry is long enough to span multiple lines

mpv --no-config --osd-font-size=29 <directory or playlist file/URL>

Expected behavior

The F8 "Show Playlist" OSD only ever displays as many entries as can fit on the screen. The whole OSD is visible and nothing is cropped off-screen.

Actual behavior

With font sizes >=30 mpv behaves as expected. The last line is visible and shows the amount of playlist entries that don't fit on screen.
With font sizes <30 mpv tries to display more entries at a time as can fit on the screen. Trailing lines are off-screen and not visible.

Log file

mpv-issue-11684-log_fontsize-playlist-mismatch.txt

Sample files

N/A

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with mpv --no-config --osd-font-size=29 and a long playlist, then inspect mpv-issue-11684-log_fontsize-playlist-mismatch.txt. Compare the F8 playlist OSD behavior below and at font size 30; done means no playlist entries are rendered off-screen and the overflow count remains visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.