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

Treat non-positive duration as unknown #728

Merged
merged 1 commit into from
Nov 9, 2022
Merged

Treat non-positive duration as unknown #728

merged 1 commit into from
Nov 9, 2022

Conversation

fstanis
Copy link
Contributor

@fstanis fstanis commented Nov 9, 2022

No description provided.

@fstanis fstanis requested a review from luizgrp November 9, 2022 17:12
@@ -48,7 +48,7 @@ public sealed class MediaPosition(
"Duration has to be greater than zero [current: $current] [duration: $duration]."
}
check(current <= duration) {
"Current position has to be greater than duration [current: $current] [duration: $duration]."
"Duration can't be less than current position [current: $current] [duration: $duration]."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops! thanks!

@fstanis fstanis merged commit 9258c1d into google:main Nov 9, 2022
@fstanis fstanis self-assigned this Nov 9, 2022
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