diff --git a/lib/membrane/bin/callback_context.ex b/lib/membrane/bin/callback_context.ex index 6f70672bf..1d929f601 100644 --- a/lib/membrane/bin/callback_context.ex +++ b/lib/membrane/bin/callback_context.ex @@ -27,7 +27,7 @@ defmodule Membrane.Bin.CallbackContext do optional(:pad_options) => map(), optional(:members) => [Membrane.Child.name()], optional(:crash_initiator) => Membrane.Child.name(), - optional(:reason) => Membrane.Core.Parent.CrashGroup.reason(), + optional(:reason) => any(), optional(:start_of_stream_received?) => boolean() } end diff --git a/lib/membrane/core/parent/crash_group.ex b/lib/membrane/core/parent/crash_group.ex index 5608ab9a4..7d90f91f5 100644 --- a/lib/membrane/core/parent/crash_group.ex +++ b/lib/membrane/core/parent/crash_group.ex @@ -10,7 +10,6 @@ defmodule Membrane.Core.Parent.CrashGroup do use Bunch.Access @type name() :: any() - @type reason() :: any() @type t :: %__MODULE__{ name: name(), @@ -18,7 +17,7 @@ defmodule Membrane.Core.Parent.CrashGroup do members: [Membrane.Child.name()], detonating?: boolean(), crash_initiator: Membrane.Child.name(), - reason: reason() + reason: any() } @enforce_keys [:name, :mode] diff --git a/lib/membrane/pipeline/callback_context.ex b/lib/membrane/pipeline/callback_context.ex index b9fc4efa9..2bc41c644 100644 --- a/lib/membrane/pipeline/callback_context.ex +++ b/lib/membrane/pipeline/callback_context.ex @@ -23,7 +23,7 @@ defmodule Membrane.Pipeline.CallbackContext do optional(:from) => [GenServer.from()], optional(:members) => [Membrane.Child.name()], optional(:crash_initiator) => Membrane.Child.name(), - optional(:reason) => Membrane.Core.Parent.CrashGroup.reason(), + optional(:reason) => any(), optional(:start_of_stream_received?) => boolean() } end