publish type argument is now optional because some client do not provide it

This commit is contained in:
Roman Arutyunyan 2012-12-12 02:09:33 +04:00
parent ac924d7f94
commit 6ab14605ba

View file

@ -443,7 +443,7 @@ ngx_rtmp_cmd_publish_init(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
ngx_null_string,
&v.name, sizeof(v.name) },
{ NGX_RTMP_AMF_STRING,
{ NGX_RTMP_AMF_OPTIONAL | NGX_RTMP_AMF_STRING,
ngx_null_string,
&v.type, sizeof(v.type) },
};