Skip to content

Conversation

Nycrera
Copy link
Contributor

@Nycrera Nycrera commented Jul 23, 2022

As mentioned in issue #1844, this is my fix to the problem.
When a seek of the source occurs with FrameGrabber.setTimestamp() or FrameGrabber.setFrameNumber(), the timer should be reset.

If the author of FrameGrabber.grabAtFrameRate(), @wangxi761, can take a look at them. It would be awesome.

@saudet
Copy link
Member

saudet commented Jul 28, 2022

Those methods get overridden in FFmpegFrameGrabber, so it won't help to reset it there. It's probably an operation that we want to do regardless of seeking, so what about simply adding a new method like this one?

public void resetStartTime() {
    startTime = 0;
}

@Nycrera
Copy link
Contributor Author

Nycrera commented Jul 29, 2022

Sounds good to me.

@saudet saudet merged commit 7ce2b98 into bytedeco:master Aug 1, 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