mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +01:00
Switch spatial layers at the right point.
This commit is contained in:
parent
d96a48f805
commit
f4aa86a491
1 changed files with 7 additions and 5 deletions
|
@ -271,11 +271,13 @@ func (down *rtpDownTrack) Write(buf []byte) (int, error) {
|
||||||
if flags.Keyframe {
|
if flags.Keyframe {
|
||||||
layer.sid = layer.wantedSid
|
layer.sid = layer.wantedSid
|
||||||
down.setLayerInfo(layer)
|
down.setLayerInfo(layer)
|
||||||
} else if flags.SidUpSync {
|
} else if flags.Sid == layer.sid + 1 {
|
||||||
layer.sid = layer.sid + 1
|
if flags.SidUpSync {
|
||||||
down.setLayerInfo(layer)
|
layer.sid = layer.sid + 1
|
||||||
} else {
|
down.setLayerInfo(layer)
|
||||||
down.remote.RequestKeyframe()
|
} else {
|
||||||
|
down.remote.RequestKeyframe()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue