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

Fixed a bug in playbackController causing multiple wallclockTime intervals #2611

Conversation

aescarcha
Copy link
Contributor

wallclockTimeIntervalId was set to null before stopping the interval.

May be related to #2593

@@ -358,7 +358,7 @@ function PlaybackController() {
onWallclockTime();
};

wallclockTimeIntervalId = setInterval(tick, mediaPlayerModel.getWallclockTimeUpdateInterval());
wallclockTimeIntervalId = wallclockTimeIntervalId || setInterval(tick, mediaPlayerModel.getWallclockTimeUpdateInterval());
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you really need to set wallclockTimeIntervalId? At the beginning of the function, there is this line :
if (wallclockTimeIntervalId !== null) return;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a double check in case it's called twice, we can remove the first one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the new one

@epiclabsDASH epiclabsDASH added this to the 2.8 milestone Jun 4, 2018
@epiclabsDASH epiclabsDASH merged commit f9386c5 into Dash-Industry-Forum:development Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants