From d417b37c55a3b2d8255b3d56b0e9f48081d24bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Wala?= Date: Mon, 5 Aug 2024 11:04:37 +0200 Subject: [PATCH] Change some SDP utils functions to private --- lib/ex_webrtc/sdp_utils.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ex_webrtc/sdp_utils.ex b/lib/ex_webrtc/sdp_utils.ex index 9c5f1a8..46a9377 100644 --- a/lib/ex_webrtc/sdp_utils.ex +++ b/lib/ex_webrtc/sdp_utils.ex @@ -24,7 +24,7 @@ defmodule ExWebRTC.SDPUtils do end end - def ensure_mid(sdp) do + defp ensure_mid(sdp) do sdp.media |> Enum.reduce_while({:ok, []}, fn media, {:ok, acc} -> case ExSDP.get_attributes(media, :mid) do @@ -39,7 +39,7 @@ defmodule ExWebRTC.SDPUtils do end end - def ensure_bundle(sdp) do + defp ensure_bundle(sdp) do groups = ExSDP.get_attributes(sdp, ExSDP.Attribute.Group) mline_mids = get_bundle_mids(sdp.media) @@ -64,7 +64,7 @@ defmodule ExWebRTC.SDPUtils do Enum.filter(groups, fn %ExSDP.Attribute.Group{semantics: name} -> name == to_filter end) end - def ensure_rtcp_mux(sdp) do + defp ensure_rtcp_mux(sdp) do sdp.media |> Enum.all?(&(ExSDP.get_attribute(&1, :rtcp_mux) == :rtcp_mux)) |> case do