-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RSDK-9847] - Bump gortsplib dep #80
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -404,12 +404,12 @@ func (rc *rtspCamera) initH264(session *description.Session) (err error) { | |
} | ||
|
||
publishToWebRTC := func(pkt *rtp.Packet) { | ||
pts, ok := rc.client.PacketPTS(media, pkt) | ||
pts, ok := rc.client.PacketPTS2(media, pkt) | ||
if !ok { | ||
return | ||
} | ||
ntp := time.Now() | ||
u, err := fp.ProcessRTPPacket(pkt, ntp, pts, true) | ||
u, err := fp.ProcessRTPPacket(pkt, ntp, time.Duration(pts), true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is PTS not time since epoch? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not necessarily time since epoch but normally time since the start of the media stream. In this case we are simply parsing out the PTS from the RTP packet we are receiving. |
||
if err != nil { | ||
rc.logger.Debug(err.Error()) | ||
return | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do reconfigures/reboot behavior look ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call -- tested reconfigures and shutdown working ok.