switch to gortsplib/v5 (#4978)
Some checks failed
code_lint / go (push) Has been cancelled
code_lint / go_mod (push) Has been cancelled
code_lint / docs (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled

This commit is contained in:
Alessandro Ros 2025-09-16 13:10:34 +02:00 committed by GitHub
parent 803e13e9fb
commit e3b8af8933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
99 changed files with 272 additions and 297 deletions

View file

@ -7,10 +7,10 @@ import (
"net/url"
"time"
"github.com/bluenviron/gortsplib/v4/pkg/description"
"github.com/bluenviron/gortsplib/v4/pkg/format"
"github.com/bluenviron/gortsplib/v4/pkg/rtptime"
"github.com/bluenviron/gortsplib/v4/pkg/sdp"
"github.com/bluenviron/gortsplib/v5/pkg/description"
"github.com/bluenviron/gortsplib/v5/pkg/format"
"github.com/bluenviron/gortsplib/v5/pkg/rtptime"
"github.com/bluenviron/gortsplib/v5/pkg/sdp"
"github.com/bluenviron/mediamtx/internal/conf"
"github.com/bluenviron/mediamtx/internal/counterdumper"
"github.com/bluenviron/mediamtx/internal/defs"
@ -114,7 +114,7 @@ func (s *Source) runReader(desc *description.Session, nc net.Conn) error {
var stream *stream.Stream
timeDecoder := &rtptime.GlobalDecoder2{}
timeDecoder := &rtptime.GlobalDecoder{}
timeDecoder.Initialize()
mediasByPayloadType := make(map[uint8]*description.Media)