mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
replace OnDecodeError with OnWarning (#177)
This commit is contained in:
@@ -831,7 +831,7 @@ func TestServerPlayDecodeErrors(t *testing.T) {
|
||||
StatusCode: base.StatusOK,
|
||||
}, nil
|
||||
},
|
||||
onDecodeError: func(ctx *ServerHandlerOnDecodeErrorCtx) {
|
||||
onWarning: func(ctx *ServerHandlerOnWarningCtx) {
|
||||
switch {
|
||||
case ca.proto == "udp" && ca.name == "rtcp invalid":
|
||||
require.EqualError(t, ctx.Error, "rtcp: packet too short")
|
||||
|
Reference in New Issue
Block a user