From 5715784e7cae42a595790d6388aec90c8b2a8cc2 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Fri, 8 Feb 2013 19:12:44 +0400 Subject: [PATCH] fixed pulling from red5: 'live' play mode --- ngx_rtmp_relay_module.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ngx_rtmp_relay_module.c b/ngx_rtmp_relay_module.c index ec3453b..7953e6d 100644 --- a/ngx_rtmp_relay_module.c +++ b/ngx_rtmp_relay_module.c @@ -1039,11 +1039,11 @@ ngx_rtmp_relay_send_play(ngx_rtmp_session_t *s) } if (ctx->live) { - start = -1; - duration = -1; + start = -1000; + duration = -1000; } else { - start = (ctx->start ? ctx->start : -2); - duration = (ctx->stop ? ctx->stop - ctx->start : -1); + start = (ctx->start ? ctx->start : -2000); + duration = (ctx->stop ? ctx->stop - ctx->start : -1000); } ngx_memzero(&h, sizeof(h));