fix: 没有级联sink, 仍然拷贝推流数据的问题

This commit is contained in:
ydajiang
2025-06-08 09:20:40 +08:00
parent 668ad3aca5
commit 3b03420639

View File

@@ -121,7 +121,7 @@ func (source *BaseGBSource) ProcessPacket(data []byte) error {
_ = packet.Unmarshal(data) _ = packet.Unmarshal(data)
// 国标级联转发 // 国标级联转发
if source.GetTransStreamPublisher().GetTransStreams() != nil { if source.GetTransStreamPublisher().GetForwardTransStream() != nil {
if source.lastRtpTimestamp == -1 { if source.lastRtpTimestamp == -1 {
source.lastRtpTimestamp = int64(packet.Timestamp) source.lastRtpTimestamp = int64(packet.Timestamp)
} }