1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-26 02:25:58 +01:00

Inline activateDownTrack.

This commit is contained in:
Juliusz Chroboczek 2020-05-26 17:01:29 +02:00
parent 9488d4a7c8
commit d9f2a93615

View file

@ -736,10 +736,6 @@ func addDownTrack(c *client, conn *downConnection, remoteTrack *upTrack, remoteC
return s, nil return s, nil
} }
func activateDownTrack(conn *downConnection, track *downTrack) {
track.remote.addLocal(track)
}
const ( const (
minLossRate = 9600 minLossRate = 9600
initLossRate = 512 * 1000 initLossRate = 512 * 1000
@ -1058,7 +1054,7 @@ func gotAnswer(c *client, id string, answer webrtc.SessionDescription) error {
} }
for _, t := range down.tracks { for _, t := range down.tracks {
activateDownTrack(down, t) t.remote.addLocal(t)
} }
return nil return nil
} }