Check forwarder started when seeing. (#1191)
When switching from local -> remote or remote -> local, the forwarder state is cached and restored after the switch to ensure continuity in sequence number /time stamp. But, if the forwarder had not started before the switch, the sequence number always starts at 1 because of seeding. So, do not see unless forwarder was started before the switch.
This commit is contained in:
@@ -179,7 +179,7 @@ func (r *RTPStats) Seed(from *RTPStats) {
|
||||
r.lock.Lock()
|
||||
defer r.lock.Unlock()
|
||||
|
||||
if from == nil {
|
||||
if from == nil || !from.initialized {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user