There was an error while loading. Please reload this page.
1 parent 1128932 commit 6218a36Copy full SHA for 6218a36
1 file changed
lib/membrane/core/component.ex
@@ -26,13 +26,11 @@ defmodule Membrane.Core.Component do
26
@spec context_from_state(state(), callback_context_optional_fields()) ::
27
callback_context()
28
def context_from_state(state, args \\ []) do
29
- alias Membrane.Core.{Bin, Element, Pipeline}
30
-
31
callback_context_module =
32
case state do
33
- %Element.State{} -> Element.CallbackContext
34
- %Bin.State{} -> Bin.CallbackContext
35
- %Pipeline.State{} -> Pipeline.CallbackContext
+ %Membrane.Core.Element.State{} -> Membrane.Core.Element.CallbackContext
+ %Membrane.Core.Bin.State{} -> Membrane.Core.Bin.CallbackContext
+ %Membrane.Core.Pipeline.State{} -> Membrane.Core.Pipeline.CallbackContext
36
end
37
38
callback_context_module.from_state(state, args)
0 commit comments