mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-30 02:31:50 +08:00
update gortsplib
This commit is contained in:
@@ -149,9 +149,8 @@ func (s *rtspSource) run(ctx context.Context) error {
|
||||
switch tracks[ctx.TrackID].(type) {
|
||||
case *gortsplib.TrackH264:
|
||||
err = res.stream.writeData(&dataH264{
|
||||
trackID: ctx.TrackID,
|
||||
rtpPackets: []*rtp.Packet{ctx.Packet},
|
||||
ptsEqualsDTS: ctx.PTSEqualsDTS,
|
||||
trackID: ctx.TrackID,
|
||||
rtpPackets: []*rtp.Packet{ctx.Packet},
|
||||
})
|
||||
|
||||
case *gortsplib.TrackMPEG4Audio:
|
||||
@@ -162,9 +161,8 @@ func (s *rtspSource) run(ctx context.Context) error {
|
||||
|
||||
default:
|
||||
err = res.stream.writeData(&dataGeneric{
|
||||
trackID: ctx.TrackID,
|
||||
rtpPackets: []*rtp.Packet{ctx.Packet},
|
||||
ptsEqualsDTS: ctx.PTSEqualsDTS,
|
||||
trackID: ctx.TrackID,
|
||||
rtpPackets: []*rtp.Packet{ctx.Packet},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user