From d9f2a93615a77e514785222a3d3a8bb0312ecc38 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Tue, 26 May 2020 17:01:29 +0200 Subject: [PATCH] Inline activateDownTrack. --- client.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client.go b/client.go index 8c70bde..859d64c 100644 --- a/client.go +++ b/client.go @@ -736,10 +736,6 @@ func addDownTrack(c *client, conn *downConnection, remoteTrack *upTrack, remoteC return s, nil } -func activateDownTrack(conn *downConnection, track *downTrack) { - track.remote.addLocal(track) -} - const ( minLossRate = 9600 initLossRate = 512 * 1000 @@ -1058,7 +1054,7 @@ func gotAnswer(c *client, id string, answer webrtc.SessionDescription) error { } for _, t := range down.tracks { - activateDownTrack(down, t) + t.remote.addLocal(t) } return nil }