mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2026-04-22 23:37:11 +08:00
aler9未处理回调中带有err的情况
This commit is contained in:
@@ -46,7 +46,9 @@ func (conf *RTSPConfig) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*
|
||||
StatusCode: base.StatusOK,
|
||||
}, suber.stream, nil
|
||||
} else {
|
||||
return nil, nil, err
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusNotFound,
|
||||
}, suber.stream, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +101,7 @@ func (conf *RTSPConfig) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (*
|
||||
} else {
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusBadRequest,
|
||||
}, err
|
||||
}, nil
|
||||
}
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusOK,
|
||||
|
||||
Reference in New Issue
Block a user