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 committed Feb 19, 2024
1 parent 22d21a5 commit fedbaf0
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 @@ -882,7 +882,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 fedbaf0

Please sign in to comment.