Skip to content

Commit

Permalink
Fix invalid order of return values from `TWCCRecorder.get_feedback/1 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala authored Feb 19, 2024
1 parent 73c247b commit f96e563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_webrtc/peer_connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ defmodule ExWebRTC.PeerConnection do
Process.send_after(self(), :send_twcc_feedback, @twcc_interval)

if twcc_recorder.media_ssrc != nil do
{twcc_recorder, feedbacks} = TWCCRecorder.get_feedback(twcc_recorder)
{feedbacks, twcc_recorder} = TWCCRecorder.get_feedback(twcc_recorder)

for feedback <- feedbacks do
encoded = ExRTCP.Packet.encode(feedback)
Expand Down

0 comments on commit f96e563

Please sign in to comment.