mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-10 14:31:07 +02:00
fixed pulling from red5: 'live' play mode
This commit is contained in:
parent
6b96942097
commit
5715784e7c
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue