From 39919d7ca1b445026e57894abb59118a3a53bb3e Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Thu, 29 Feb 2024 10:33:20 +0900 Subject: [PATCH] SampleBuilder: Deprecate PopWithTimestamp SampleBuilder.PopWithTimestamp() will be removed in v4. Use Sample.PacketTimestamp field instead. --- pkg/media/samplebuilder/samplebuilder.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/media/samplebuilder/samplebuilder.go b/pkg/media/samplebuilder/samplebuilder.go index d972808307c..e651fdbb8ef 100644 --- a/pkg/media/samplebuilder/samplebuilder.go +++ b/pkg/media/samplebuilder/samplebuilder.go @@ -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 {