mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 07:36:57 +08:00
update golangci-lint
This commit is contained in:
@@ -21,7 +21,8 @@ type testServer struct {
|
||||
done chan struct{}
|
||||
}
|
||||
|
||||
func (sh *testServer) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base.Response, *gortsplib.ServerStream, error) {
|
||||
func (sh *testServer) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx,
|
||||
) (*base.Response, *gortsplib.ServerStream, error) {
|
||||
if sh.authValidator == nil {
|
||||
sh.authValidator = auth.NewValidator(sh.user, sh.pass, nil)
|
||||
}
|
||||
@@ -36,7 +37,8 @@ func (sh *testServer) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*ba
|
||||
}, nil, nil
|
||||
}
|
||||
|
||||
track, _ := gortsplib.NewTrackH264(96, &gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x05, 0x06}})
|
||||
track, _ := gortsplib.NewTrackH264(96,
|
||||
&gortsplib.TrackConfigH264{SPS: []byte{0x01, 0x02, 0x03, 0x04}, PPS: []byte{0x05, 0x06}})
|
||||
sh.stream = gortsplib.NewServerStream(gortsplib.Tracks{track})
|
||||
|
||||
return &base.Response{
|
||||
|
Reference in New Issue
Block a user