Maintain a reference to the connection associated to each track.

This avoids carrying an extra parameter in many places.
This commit is contained in:
Juliusz Chroboczek
2021-07-14 14:05:23 +02:00
parent bcd62f190b
commit 36d31f0db8
6 changed files with 30 additions and 32 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ func (t *diskTrack) Write(buf []byte) (int, error) {
}
}
if len(nacks) > 0 {
t.remote.Nack(t.conn.remote, nacks)
t.remote.Nack(nacks)
}
}
}