envivo fix; it does not finalize connect() arrays properly

This commit is contained in:
Roman Arutyunyan 2013-12-29 18:32:04 +04:00
parent 095c659ad8
commit 307245415b

View file

@ -229,9 +229,14 @@ ngx_rtmp_amf_read_object(ngx_rtmp_amf_ctx_t *ctx, ngx_rtmp_amf_elt_t *elts,
return NGX_ERROR;
}
if (ngx_rtmp_amf_get(ctx, &type, 1) != NGX_OK
|| type != NGX_RTMP_AMF_END)
{
rc = ngx_rtmp_amf_get(ctx, &type, 1);
/* Envivo encoder does not finalize objects properly */
if (rc == NGX_DONE) {
return NGX_OK;
}
if (rc != NGX_OK || type != NGX_RTMP_AMF_END) {
return NGX_ERROR;
}