Skip to content

Commit

Permalink
Fix bugs wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FelonEkonom committed Oct 20, 2023
1 parent 00794c3 commit 9be7be2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ defmodule Membrane.Core.Element.DemandController.AutoFlowUtils do
pad_to_queue_map =
pad_ref_list
|> Enum.filter(&hard_corcked?(&1, state))
|> Map.new(&PadModel.get_data!(state, &1, [:auto_flow_queue]))
|> Map.new(&{&1, PadModel.get_data!(state, &1, :auto_flow_queue)})

state = handle_queued_items(pad_to_queue_map, state)

Expand All @@ -176,7 +176,7 @@ defmodule Membrane.Core.Element.DemandController.AutoFlowUtils do

{:empty, _empty_queue} ->
pad_to_queue_map
|> Map.pop(pad_ref)
|> Map.delete(pad_ref)
|> handle_queued_items(state)
end
end
Expand Down
6 changes: 3 additions & 3 deletions lib/membrane/core/element/effective_flow_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ defmodule Membrane.Core.Element.EffectiveFlowController do
end)

state.pads_data
|> Enum.filter(fn
{_pad_ref, %{direction: :input, flow_contorl: :auto}} -> true
_other -> false
|> Enum.flat_map(fn
{pad_ref, %{direction: :input, flow_control: :auto}} -> [pad_ref]
_other -> []
end)
|> AutoFlowUtils.auto_adjust_atomic_demand(state)
end
Expand Down

0 comments on commit 9be7be2

Please sign in to comment.