mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-17 21:29:59 +01:00
BugFix Bounce playback at first frame
This commit is contained in:
@@ -1346,7 +1346,7 @@ void MediaPlayer::execute_seek_command(GstClockTime target, bool force)
|
|||||||
if (target == GST_CLOCK_TIME_NONE) {
|
if (target == GST_CLOCK_TIME_NONE) {
|
||||||
// create seek event with current position (called for rate changed)
|
// create seek event with current position (called for rate changed)
|
||||||
// CLAMP the time to ensure we do not bounce outside of timeline
|
// CLAMP the time to ensure we do not bounce outside of timeline
|
||||||
seek_pos = CLAMP(position_, timeline_.first() + timeline_.step(), timeline_.last() - timeline_.step());
|
seek_pos = CLAMP(position_, timeline_.first(), timeline_.last() - timeline_.step());
|
||||||
// seek with KEY mode if playing
|
// seek with KEY mode if playing
|
||||||
seek_flags |= GST_SEEK_FLAG_KEY_UNIT | GST_SEEK_FLAG_SNAP_AFTER;
|
seek_flags |= GST_SEEK_FLAG_KEY_UNIT | GST_SEEK_FLAG_SNAP_AFTER;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user