rtmp: ensure we catch invalid methods

This commit is contained in:
Dan Kortschak 2018-09-06 18:06:45 +09:30
parent 569cc100fa
commit 42f7316f09
1 changed files with 1 additions and 0 deletions

View File

@ -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)