diff --git a/go.mod b/go.mod index 21c8218bd05..b33384de02b 100644 --- a/go.mod +++ b/go.mod @@ -7,8 +7,8 @@ require ( github.com/abema/go-mp4 v0.10.1 github.com/alecthomas/kong v0.7.1 github.com/asticode/go-astits v1.11.0 - github.com/bluenviron/gohlslib v0.2.5 - github.com/bluenviron/gortsplib/v3 v3.7.0 + github.com/bluenviron/gohlslib v0.2.6 + github.com/bluenviron/gortsplib/v3 v3.8.0 github.com/bluenviron/mediacommon v0.5.1 github.com/fsnotify/fsnotify v1.6.0 github.com/gin-gonic/gin v1.9.1 diff --git a/go.sum b/go.sum index 1954510eb5b..eb8a6d634f0 100644 --- a/go.sum +++ b/go.sum @@ -10,10 +10,10 @@ github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflx github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0= github.com/asticode/go-astits v1.11.0 h1:GTHUXht0ZXAJXsVbsLIcyfHr1Bchi4QQwMARw2ZWAng= github.com/asticode/go-astits v1.11.0/go.mod h1:QSHmknZ51pf6KJdHKZHJTLlMegIrhega3LPWz3ND/iI= -github.com/bluenviron/gohlslib v0.2.5 h1:M+uWOLjOa7hirUITLndf9bYarA8F7HR1m7+5dG/3WVI= -github.com/bluenviron/gohlslib v0.2.5/go.mod h1:IvhV5h+92FljHy/xHlcOZm09rDeqg1RR88MjCTBx67Y= -github.com/bluenviron/gortsplib/v3 v3.7.0 h1:gpepAA0Vf17+V5cw4epPySzc6O1hHazidXisGHtHCLY= -github.com/bluenviron/gortsplib/v3 v3.7.0/go.mod h1:d6F2mJqC2qXrav6Xzg7kdnqYFUYobrhXjERQlWH+eRs= +github.com/bluenviron/gohlslib v0.2.6 h1:7JPfG5v6773xlrTC8qdvgCL7TCi2noLteo/PA1W1VVw= +github.com/bluenviron/gohlslib v0.2.6/go.mod h1:x5XU60uvx91bQkRI8lrKNEltUtudR0WzaONBOhH+nzQ= +github.com/bluenviron/gortsplib/v3 v3.8.0 h1:oQI/CN/3iwbrOu+E3iERQvwn3Ks6LKPwNEUYFlmVUzA= +github.com/bluenviron/gortsplib/v3 v3.8.0/go.mod h1:CoUNAUuXl1SrxT1lxFE5HptAj2g8auR1rhSjTapM06k= github.com/bluenviron/mediacommon v0.5.1 h1:eNLc3SQp1pOe5lwsFgVUzZwf/NPkQbWGnGpeS8EQMeU= github.com/bluenviron/mediacommon v0.5.1/go.mod h1:t0dqPsWUTchyvib0MhixIwXEgvDX4V9G+I0GzWLQRb8= github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= diff --git a/internal/core/api_test.go b/internal/core/api_test.go index f8fe741d036..a1d6acd18e8 100644 --- a/internal/core/api_test.go +++ b/internal/core/api_test.go @@ -280,7 +280,7 @@ func TestAPIPathsList(t *testing.T) { Type: "rtspSession", }, SourceReady: true, - Tracks: []string{"H264", "MPEG4-audio-gen"}, + Tracks: []string{"H264", "MPEG-4 Audio"}, BytesReceived: 16, }}, }, out) @@ -343,7 +343,7 @@ func TestAPIPathsList(t *testing.T) { Type: "rtspsSession", }, SourceReady: true, - Tracks: []string{"H264", "MPEG4-audio-gen"}, + Tracks: []string{"H264", "MPEG-4 Audio"}, }}, }, out) }) diff --git a/internal/core/source.go b/internal/core/source.go index 973d99925b5..cf115fa7e02 100644 --- a/internal/core/source.go +++ b/internal/core/source.go @@ -22,7 +22,7 @@ type source interface { func mediaDescription(media *media.Media) string { ret := make([]string, len(media.Formats)) for i, forma := range media.Formats { - ret[i] = forma.String() + ret[i] = forma.Codec() } return strings.Join(ret, "/") }