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

Fix timer running late #685

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Fix timer running late #685

merged 3 commits into from
Nov 29, 2023

Conversation

varsill
Copy link
Contributor

@varsill varsill commented Nov 27, 2023

This PR:

  • guards the timer tick in TimerController.handle_tick with supplying_demand? flag

@varsill varsill added the no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md label Nov 28, 2023
@@ -256,7 +256,10 @@ defmodule Membrane.Core.Element do
end

defp do_handle_info(Message.new(:timer_tick, timer_id), state) do
state = %{state | supplying_demand?: true}
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a comment explaining why we do this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@varsill varsill merged commit 168f57e into master Nov 29, 2023
5 of 6 checks passed
@varsill varsill deleted the fix_timers branch November 29, 2023 14:34
FelonEkonom added a commit that referenced this pull request Jan 23, 2024
FelonEkonom added a commit that referenced this pull request Feb 26, 2024
…le_spec_started. (#708)

* wip

* Write tests wip

* Write tests wip

* Revert "Fix timer running late (#685)"

This reverts commit 168f57e.

* Fix actions handling order bug related to Pipeline.handle_playing

* Add assertion on value passed with :setup action

* WIP Fix bug in executing handle_buffer while handling actions from previous callback

* Fix tests wip

* Fix CI

* Update changelog

* Stopt  calling handle_spec_started in between handling actions

* Make demands test more strict

* Add dots to changelog

* Fix double tick bug

* wip

* Deprecate handle_spec_started/3

* Remove unused aliases

* Remove unnecessary warning

* Bump version to 1.0.1

* Remove leftovers

* Fix docs

* Implement suggestions from CR, bump version to 1.1.0-rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants