Skip to content

Commit

Permalink
SampleBuilder: Deprecate PopWithTimestamp
Browse files Browse the repository at this point in the history
SampleBuilder.PopWithTimestamp() will be removed in v4.
Use Sample.PacketTimestamp field instead.
  • Loading branch information
at-wat committed Mar 14, 2024
1 parent 0b447fd commit 39919d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/media/samplebuilder/samplebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ func (s *SampleBuilder) Pop() *media.Sample {
// PopWithTimestamp compiles pushed RTP packets into media samples and then
// returns the next valid sample with its associated RTP timestamp (or nil, 0 if
// no sample is compiled).
//
// Deprecated: PopWithTimestamp will be removed in v4. Use Sample.PacketTimestamp field instead.
func (s *SampleBuilder) PopWithTimestamp() (*media.Sample, uint32) {
sample := s.Pop()
if sample == nil {
Expand Down

0 comments on commit 39919d7

Please sign in to comment.