Skip to content

Commit

Permalink
Fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Nov 22, 2023
1 parent b732ece commit a6bae14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ex_webrtc/rtp_transceiver.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ defmodule ExWebRTC.RTPTransceiver do

@impl true
def init([kind, props]) do
state = %{props | kind: kind, receiver: nil, sender: nil}
state = Map.merge(props, %{kind: kind, receiver: nil, sender: nil})

{:ok, state}
end

@impl true
def handle_call(:get_properties, _from, state) do
properties = Map.take(state, [:mid, :direction, :kind, :rtp_hrd_exts, :codecs])
{:reply, properties, state}
properties = Map.take(state, [:mid, :direction, :rtp_hdr_exts, :codecs])
{:reply, {state.kind, properties}, state}
end

@impl true
Expand Down

0 comments on commit a6bae14

Please sign in to comment.