diff --git a/lib/membrane/core/bin/callback_context.ex b/lib/membrane/core/bin/callback_context.ex index 704822720..4f6140935 100644 --- a/lib/membrane/core/bin/callback_context.ex +++ b/lib/membrane/core/bin/callback_context.ex @@ -5,6 +5,7 @@ defmodule Membrane.Core.Bin.CallbackContext do [pad_options: map()] | [members: [Membrane.Child.name()], crash_initiator: Membrane.Child.name()] | [start_of_stream_received?: boolean()] + | [reason: any()] @spec from_state(Membrane.Core.Bin.State.t(), optional_fields()) :: Membrane.Bin.CallbackContext.t() diff --git a/lib/membrane/core/pipeline/callback_context.ex b/lib/membrane/core/pipeline/callback_context.ex index d2537b760..b228d1a7f 100644 --- a/lib/membrane/core/pipeline/callback_context.ex +++ b/lib/membrane/core/pipeline/callback_context.ex @@ -5,6 +5,7 @@ defmodule Membrane.Core.Pipeline.CallbackContext do [from: GenServer.from()] | [members: [Membrane.Child.name()], crash_initiator: Membrane.Child.name()] | [start_of_stream_received?: boolean()] + | [reason: any()] @spec from_state(Membrane.Core.Pipeline.State.t(), optional_fields()) :: Membrane.Pipeline.CallbackContext.t()