Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework playback architecture a bit, use nanoseconds everywhere #928

Merged
merged 10 commits into from
Jul 14, 2024

Conversation

rdbende
Copy link
Collaborator

@rdbende rdbende commented Jul 4, 2024

It was kinda weird, that the setter for Player.position expected seconds, but the getter returned nanoseconds. Now every such interface should use nanoseconds, as that's what GStreamer uses internally, and we also don't have to care about floating point numbers.
The database still uses seconds in some places though, but it's better this way, so no database migration is needed.

Also some bug fixes

@rdbende rdbende linked an issue Jul 4, 2024 that may be closed by this pull request
@rdbende rdbende linked an issue Jul 6, 2024 that may be closed by this pull request
@geigi
Copy link
Owner

geigi commented Jul 12, 2024

Nice :) There were some bugs in the past caused by nanosecond / second confusion so good thing to decide for one.

@rdbende
Copy link
Collaborator Author

rdbende commented Jul 14, 2024

I think this is good to go now.

@rdbende rdbende merged commit e233056 into master Jul 14, 2024
6 checks passed
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.

Sleep timer fadeout doesn't work MPRIS volume property getter hangs after it was set to 0
2 participants