Commit d9f2a936 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Inline activateDownTrack.

parent 9488d4a7
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment