Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 @@ -18,6 +18,7 @@ defmodule Membrane.Core.Pipeline.CallbackContext do
clock: state.synchronization.clock_proxy,
children: state.children,
module: state.module,
name: state.name,
playback: state.playback,
resource_guard: state.resource_guard,
utility_supervisor: state.subprocess_supervisor
Expand Down
1 change: 1 addition & 0 deletions lib/membrane/core/pipeline/state.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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
1 change: 1 addition & 0 deletions lib/membrane/pipeline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ defmodule Membrane.Pipeline do
name =
case Keyword.fetch(process_options, :name) do
{:ok, name} when is_atom(name) -> Atom.to_string(name)
{:ok, {:via, Registry, {_registry, name}}} -> name
_other -> nil
end
|> case do
Expand Down
1 change: 1 addition & 0 deletions lib/membrane/pipeline/callback_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defmodule Membrane.Pipeline.CallbackContext do
:children => %{Membrane.Child.name() => Membrane.ChildEntry.t()},
:clock => Membrane.Clock.t(),
:module => module(),
:name => term(),
:playback => Membrane.Playback.t(),
:resource_guard => Membrane.ResourceGuard.t(),
:utility_supervisor => Membrane.UtilitySupervisor.t(),
Expand Down
Loading