Skip to content
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

Only assign TrackInfo Version on fresh publish. #2325

Merged
merged 2 commits into from
Dec 20, 2023
Merged

Conversation

boks1971
Copy link
Contributor

No description provided.

@@ -1824,7 +1824,10 @@ func (p *ParticipantImpl) mediaTrackReceived(track *webrtc.TrackRemote, rtpRecei
}

ti.MimeType = track.Codec().MimeType
ti.Version = p.params.VersionGenerator.New().ToProto()
if ti.Version == nil || utils.NewTimedVersionFromProto(ti.Version).IsZero() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to check version here utils.NewTimedVersionFromProto(nil).IsZero() is true

@boks1971 boks1971 merged commit 7c841e8 into master Dec 20, 2023
2 checks passed
@boks1971 boks1971 deleted the raja_version branch December 20, 2023 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants