mirror of
https://github.com/aler9/gortsplib
synced 2025-10-01 21:42:07 +08:00
replace OnDecodeError with OnWarning (#177)
This commit is contained in:
@@ -1455,7 +1455,7 @@ func TestServerRecordDecodeErrors(t *testing.T) {
|
||||
StatusCode: base.StatusOK,
|
||||
}, nil
|
||||
},
|
||||
onDecodeError: func(ctx *ServerHandlerOnDecodeErrorCtx) {
|
||||
onWarning: func(ctx *ServerHandlerOnWarningCtx) {
|
||||
switch {
|
||||
case ca.proto == "udp" && ca.name == "rtp invalid":
|
||||
require.EqualError(t, ctx.Error, "RTP header size insufficient: 2 < 4")
|
||||
|
Reference in New Issue
Block a user