Skip to content

refactor: always observe duration#697

Merged
Samillion merged 2 commits intomainfrom
observe_cached_duration
Apr 22, 2026
Merged

refactor: always observe duration#697
Samillion merged 2 commits intomainfrom
observe_cached_duration

Conversation

@Samillion
Copy link
Copy Markdown
Owner

Based on upstream mpv: mpv-player/mpv#17784

Changes:

  • Add state.duration
  • Replace all direct duration property calls with state.duration
  • Remove: on_duration(), update_duration_watch(), and local duration_watched
  • Add observe_cached("duration")

@Samillion Samillion merged commit c95b23f into main Apr 22, 2026
@Samillion Samillion deleted the observe_cached_duration branch April 22, 2026 23:45
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.

1 participant