mirror of https://bitbucket.org/ausocean/av.git
rtmp: ensure we catch invalid methods
This commit is contained in:
parent
569cc100fa
commit
42f7316f09
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue