mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
merge format and formatdecenc into formats (#222)
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
"github.com/bluenviron/gortsplib/v3"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/base"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/format"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtph264"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtph264"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/media"
|
||||
)
|
||||
|
||||
@@ -23,7 +23,7 @@ type serverHandler struct {
|
||||
mutex sync.Mutex
|
||||
publisher *gortsplib.ServerSession
|
||||
media *media.Media
|
||||
format *format.H264
|
||||
format *formats.H264
|
||||
rtpDec *rtph264.Decoder
|
||||
mpegtsMuxer *mpegtsMuxer
|
||||
}
|
||||
@@ -67,7 +67,7 @@ func (sh *serverHandler) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (
|
||||
}
|
||||
|
||||
// find the H264 media and format
|
||||
var forma *format.H264
|
||||
var forma *formats.H264
|
||||
medi := ctx.Medias.FindFormat(&forma)
|
||||
if medi == nil {
|
||||
return &base.Response{
|
||||
|
Reference in New Issue
Block a user