fixed pulling from red5: 'live' play mode

This commit is contained in:
Roman Arutyunyan 2013-02-08 19:12:44 +04:00
parent 6b96942097
commit 5715784e7c

View file

@ -1039,11 +1039,11 @@ ngx_rtmp_relay_send_play(ngx_rtmp_session_t *s)
} }
if (ctx->live) { if (ctx->live) {
start = -1; start = -1000;
duration = -1; duration = -1000;
} else { } else {
start = (ctx->start ? ctx->start : -2); start = (ctx->start ? ctx->start : -2000);
duration = (ctx->stop ? ctx->stop - ctx->start : -1); duration = (ctx->stop ? ctx->stop - ctx->start : -1000);
} }
ngx_memzero(&h, sizeof(h)); ngx_memzero(&h, sizeof(h));