Skip to content

Commit

Permalink
Add name to pipeline state
Browse files Browse the repository at this point in the history
  • Loading branch information
FelonEkonom committed Oct 18, 2024
1 parent dc50c1f commit 86fa715
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/membrane/core/pipeline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ defmodule Membrane.Core.Pipeline do

state = %State{
module: params.module,
name: params.name,
synchronization: %{
clock_proxy: clock_proxy,
clock_provider: %{clock: nil, provider: nil},
Expand Down
2 changes: 2 additions & 0 deletions lib/membrane/core/pipeline/state.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defmodule Membrane.Core.Pipeline.State do

@type t :: %__MODULE__{
module: module,
name: term(),
playback: Membrane.Playback.t(),
internal_state: Membrane.Pipeline.state() | nil,
children: ChildrenModel.children(),
Expand Down Expand Up @@ -45,6 +46,7 @@ defmodule Membrane.Core.Pipeline.State do
# importance and possibly near other related fields.

defstruct module: nil,
name: nil,
playback: :stopped,
internal_state: nil,
children: %{},
Expand Down

0 comments on commit 86fa715

Please sign in to comment.