From be0abad732aeac2e99e8d6b907d376075d42a3d0 Mon Sep 17 00:00:00 2001 From: "feliks.pobiedzinski@swmansion.com" Date: Wed, 27 Mar 2024 10:56:32 +0100 Subject: [PATCH] Format --- lib/membrane/core/element.ex | 3 ++- lib/membrane/core/element/action_handler.ex | 2 +- lib/membrane/core/element/buffer_controller.ex | 3 ++- lib/membrane/core/element/demand_controller.ex | 2 -- lib/membrane/core/element/event_controller.ex | 3 ++- lib/membrane/core/element/manual_flow_controller.ex | 9 +++++++-- lib/membrane/core/element/pad_controller.ex | 3 ++- lib/membrane/core/element/stream_format_controller.ex | 3 ++- 8 files changed, 18 insertions(+), 10 deletions(-) diff --git a/lib/membrane/core/element.ex b/lib/membrane/core/element.ex index 119e4f3dd..26d482833 100644 --- a/lib/membrane/core/element.ex +++ b/lib/membrane/core/element.ex @@ -23,7 +23,8 @@ defmodule Membrane.Core.Element do alias Membrane.Core.Element.{ BufferController, - DemandController, AutoFlowController, + DemandController, + AutoFlowController, EffectiveFlowController, EventController, ManualFlowController, diff --git a/lib/membrane/core/element/action_handler.ex b/lib/membrane/core/element/action_handler.ex index 8e7d89ddb..32aae1537 100644 --- a/lib/membrane/core/element/action_handler.ex +++ b/lib/membrane/core/element/action_handler.ex @@ -23,7 +23,7 @@ defmodule Membrane.Core.Element.ActionHandler do alias Membrane.Core.Element.{ AutoFlowController, - DemandController, AutoFlowController, + DemandController, State, StreamFormatController, ManualFlowController diff --git a/lib/membrane/core/element/buffer_controller.ex b/lib/membrane/core/element/buffer_controller.ex index bb0fb3055..99d7173df 100644 --- a/lib/membrane/core/element/buffer_controller.ex +++ b/lib/membrane/core/element/buffer_controller.ex @@ -13,7 +13,8 @@ defmodule Membrane.Core.Element.BufferController do ActionHandler, AutoFlowController, CallbackContext, - DemandController, AutoFlowController, + DemandController, + AutoFlowController, EventController, InputQueue, ManualFlowController, diff --git a/lib/membrane/core/element/demand_controller.ex b/lib/membrane/core/element/demand_controller.ex index 905876ea2..c85940228 100644 --- a/lib/membrane/core/element/demand_controller.ex +++ b/lib/membrane/core/element/demand_controller.ex @@ -10,7 +10,6 @@ defmodule Membrane.Core.Element.DemandController do alias Membrane.Core.CallbackHandler alias Membrane.Core.Element.CallbackContext - alias Membrane.Core.Element.{ ActionHandler, AtomicDemand, @@ -117,7 +116,6 @@ defmodule Membrane.Core.Element.DemandController do }) end - @spec exec_handle_demand(Pad.ref(), State.t()) :: State.t() def exec_handle_demand(pad_ref, state) do with {:ok, pad_data} <- PadModel.get_data(state, pad_ref), diff --git a/lib/membrane/core/element/event_controller.ex b/lib/membrane/core/element/event_controller.ex index 246eaef16..f86c887ff 100644 --- a/lib/membrane/core/element/event_controller.ex +++ b/lib/membrane/core/element/event_controller.ex @@ -12,7 +12,8 @@ defmodule Membrane.Core.Element.EventController do alias Membrane.Core.Element.{ ActionHandler, CallbackContext, - DemandController, AutoFlowController, + DemandController, + AutoFlowController, InputQueue, ManualFlowController, AutoFlowController, diff --git a/lib/membrane/core/element/manual_flow_controller.ex b/lib/membrane/core/element/manual_flow_controller.ex index 83793d283..a1440bd52 100644 --- a/lib/membrane/core/element/manual_flow_controller.ex +++ b/lib/membrane/core/element/manual_flow_controller.ex @@ -9,7 +9,8 @@ defmodule Membrane.Core.Element.ManualFlowController do ActionHandler, BufferController, CallbackContext, - DemandController, AutoFlowController, + DemandController, + AutoFlowController, EventController, InputQueue, State, @@ -101,7 +102,11 @@ defmodule Membrane.Core.Element.ManualFlowController do %State{state | delay_demands?: false} end - @spec update_demand(Pad.ref(), non_neg_integer() | (non_neg_integer() -> non_neg_integer()), State.t()) :: State.t() + @spec update_demand( + Pad.ref(), + non_neg_integer() | (non_neg_integer() -> non_neg_integer()), + State.t() + ) :: State.t() def update_demand(pad_ref, size, state) when is_integer(size) do PadModel.set_data!(state, pad_ref, :manual_demand_size, size) end diff --git a/lib/membrane/core/element/pad_controller.ex b/lib/membrane/core/element/pad_controller.ex index 85479f9a1..f51a03252 100644 --- a/lib/membrane/core/element/pad_controller.ex +++ b/lib/membrane/core/element/pad_controller.ex @@ -11,7 +11,8 @@ defmodule Membrane.Core.Element.PadController do AtomicDemand, AutoFlowController, CallbackContext, - DemandController, AutoFlowController, + DemandController, + AutoFlowController, EffectiveFlowController, EventController, InputQueue, diff --git a/lib/membrane/core/element/stream_format_controller.ex b/lib/membrane/core/element/stream_format_controller.ex index e70949fa0..4a20c6775 100644 --- a/lib/membrane/core/element/stream_format_controller.ex +++ b/lib/membrane/core/element/stream_format_controller.ex @@ -12,7 +12,8 @@ defmodule Membrane.Core.Element.StreamFormatController do alias Membrane.Core.Element.{ ActionHandler, CallbackContext, - DemandController, AutoFlowController, + DemandController, + AutoFlowController, InputQueue, PlaybackQueue, State