Wow that was a quick one
This commit is contained in:
Zander Brown 2018-11-05 17:55:46 +00:00
parent 5ac4f6dcf9
commit 85387a0a9b
No known key found for this signature in database
GPG Key ID: 25EE3C36E31E5F84

View File

@ -561,6 +561,7 @@ impl PlayerExt for PlayerWidget {
let duration = self.player.get_duration();
let destination = match direction {
SeekDirection::Backwards if position >= offset => Some(position - offset),
SeekDirection::Backwards if position < offset => Some(ClockTime::from_seconds(0)),
SeekDirection::Forward if !duration.is_none() && position + offset <= duration => {
Some(position + offset)
}