Refresh layer info after adjusting in down.Write.
Otherwise we might act on outdated info, which could cause a spurious drop.
This commit is contained in:
@@ -238,6 +238,7 @@ func (down *rtpDownTrack) Write(buf []byte) (int, error) {
|
||||
}
|
||||
down.setLayerInfo(layer)
|
||||
down.adjustLayer()
|
||||
layer = down.getLayerInfo()
|
||||
}
|
||||
if flags.Start && (layer.tid != layer.wantedTid) {
|
||||
if layer.wantedTid < layer.tid || flags.TidUpSync {
|
||||
|
||||
Reference in New Issue
Block a user