mirror of
https://github.com/Monibuca/engine.git
synced 2026-04-23 00:07:06 +08:00
fix: pull reuse puller but not tracks
This commit is contained in:
@@ -88,6 +88,11 @@ func (pub *Puller) startPull(puller IPuller) {
|
||||
puller.Error("pull publish", zap.Error(err))
|
||||
return
|
||||
}
|
||||
if stream != puber.Stream {
|
||||
// 老流中的音视频轨道不可再使用
|
||||
puber.AudioTrack = nil
|
||||
puber.VideoTrack = nil
|
||||
}
|
||||
stream = puber.Stream
|
||||
badPuller = false
|
||||
if err = puller.Pull(); err != nil && !puller.IsShutdown() {
|
||||
|
||||
Reference in New Issue
Block a user