From f1f724a12ce9ebf282fecc59bfb6fce63c416981 Mon Sep 17 00:00:00 2001 From: KarolK99 Date: Tue, 4 Jul 2023 17:54:52 +0200 Subject: [PATCH] Fix dialyzer warnings --- lib/membrane_rtc_engine/engine.ex | 2 +- lib/membrane_rtc_engine/track.ex | 2 +- lib/membrane_rtc_engine/utils.ex | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/membrane_rtc_engine/engine.ex b/lib/membrane_rtc_engine/engine.ex index 74cb87235..c46026c63 100644 --- a/lib/membrane_rtc_engine/engine.ex +++ b/lib/membrane_rtc_engine/engine.ex @@ -255,7 +255,7 @@ defmodule Membrane.RTC.Engine do """ @spec add_endpoint( pid :: pid(), - endpoint :: Membrane.ChildrenSpec.child_definition_t(), + endpoint :: Membrane.ChildrenSpec.child_definition(), opts :: endpoint_options_t() ) :: :ok | :error def add_endpoint(pid, endpoint, opts \\ []) do diff --git a/lib/membrane_rtc_engine/track.ex b/lib/membrane_rtc_engine/track.ex index b048c3a99..0879c8b12 100644 --- a/lib/membrane_rtc_engine/track.ex +++ b/lib/membrane_rtc_engine/track.ex @@ -177,7 +177,7 @@ defmodule Membrane.RTC.Engine.Track do {{:ok, spec: %ParentSpec{children: children, links: links}}, state} end """ - @spec get_depayloader(t()) :: Membrane.ChildrenSpec.child_definition_t() | nil + @spec get_depayloader(t()) :: Membrane.ChildrenSpec.child_definition() | nil def get_depayloader(track) do case Membrane.RTP.PayloadFormat.get(track.encoding).depayloader do nil -> diff --git a/lib/membrane_rtc_engine/utils.ex b/lib/membrane_rtc_engine/utils.ex index 2ad0df7a8..d187c14ca 100644 --- a/lib/membrane_rtc_engine/utils.ex +++ b/lib/membrane_rtc_engine/utils.ex @@ -50,7 +50,7 @@ defmodule Membrane.RTC.Utils do child_name :: any(), msg :: any(), ctx :: ctx() - ) :: [Membrane.Pipeline.Action.notify_child_t()] + ) :: [Membrane.Pipeline.Action.notify_child()] def forward(child_name, msg, ctx) do child = find_child(ctx, pattern: ^child_name)