Skip to content

Commit

Permalink
Add :reason to CallbackContexts
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikWolek committed Jan 26, 2024
1 parent 23d19e1 commit cd64be5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/membrane/core/bin/callback_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions lib/membrane/core/pipeline/callback_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cd64be5

Please sign in to comment.