Skip to content

Commit 39919d7

Browse files
committed
SampleBuilder: Deprecate PopWithTimestamp
SampleBuilder.PopWithTimestamp() will be removed in v4. Use Sample.PacketTimestamp field instead.
1 parent 0b447fd commit 39919d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/media/samplebuilder/samplebuilder.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ func (s *SampleBuilder) Pop() *media.Sample {
305305
// PopWithTimestamp compiles pushed RTP packets into media samples and then
306306
// returns the next valid sample with its associated RTP timestamp (or nil, 0 if
307307
// no sample is compiled).
308+
//
309+
// Deprecated: PopWithTimestamp will be removed in v4. Use Sample.PacketTimestamp field instead.
308310
func (s *SampleBuilder) PopWithTimestamp() (*media.Sample, uint32) {
309311
sample := s.Pop()
310312
if sample == nil {

0 commit comments

Comments
 (0)