Skip to content

Comments

fix(mpv): only check player time when there is an item in the track#1639

Merged
jeffvli merged 1 commit intodevelopmentfrom
better-mpv-init
Feb 3, 2026
Merged

fix(mpv): only check player time when there is an item in the track#1639
jeffvli merged 1 commit intodevelopmentfrom
better-mpv-init

Conversation

@kgarner7
Copy link
Collaborator

@kgarner7 kgarner7 commented Feb 3, 2026

If using MPV player and the queue is empty, there will be constant errors when trying to fetch the time.
Only fetch the time from MPV when the current song exists.

Note: when going from an empty queue to playing a song, there is one extraneous player-get-time call that is fired. Maybe this is a timing/delay issue?

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
feishin Ready Ready Preview, Comment Feb 3, 2026 3:39am

@kgarner7 kgarner7 marked this pull request as ready for review February 3, 2026 03:40
@jeffvli jeffvli merged commit 0620b09 into development Feb 3, 2026
11 checks passed
@kgarner7 kgarner7 deleted the better-mpv-init branch February 5, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants