implemented restart on packet drop

This commit is contained in:
Roman Arutyunyan
2013-01-05 10:52:44 +04:00
parent 5a4ee6392b
commit fe7a242d0d
3 changed files with 4 additions and 27 deletions

View File

@ -354,9 +354,9 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
NGX_RTMP_STAT_L("</time>");
NGX_RTMP_STAT_L("<dropped>");
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
"%uD/%uD", ctx->cs[1].dropped,
ctx->cs[0].dropped) - buf);
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf), "%%uD",
ctx->ndropped)
- buf);
NGX_RTMP_STAT_L("</dropped>");
NGX_RTMP_STAT_L("<avsync>");