move stream in a dedicated package (#2121)

needed by #2068
This commit is contained in:
Alessandro Ros
2023-07-30 22:34:35 +02:00
committed by GitHub
parent b42154fa6a
commit db3862cf0d
15 changed files with 118 additions and 91 deletions

View File

@@ -185,7 +185,7 @@ func (s *rtspSource) run(ctx context.Context, cnf *conf.PathConf, reloadConf cha
cforma := forma
c.OnPacketRTP(cmedi, cforma, func(pkt *rtp.Packet) {
res.stream.writeRTPPacket(cmedi, cforma, pkt, time.Now())
res.stream.WriteRTPPacket(cmedi, cforma, pkt, time.Now())
})
}
}