diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 2f537625..bb823f70 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1297,6 +1297,7 @@ func C_HandleInvoke(r *C_RTMP, body *byte, nBodySize uint32) (ok bool) { panic("Unsupported method av_playlist_ready") default: + panic(fmt.Sprintf("unknown method: %q", method)) } leave: C_AMF_Reset(&obj)