mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-02 04:03:44 +02:00
Merge pull request #336 from nextdayvideo/fix-record-interval-keyframe
For video streams, wait for a video keyframe before rotating the file.
This commit is contained in:
commit
9102003adf
|
@ -1103,7 +1103,7 @@ ngx_rtmp_record_node_avd(ngx_rtmp_session_t *s, ngx_rtmp_record_rec_ctx_t *rctx,
|
|||
return NGX_OK;
|
||||
}
|
||||
|
||||
if (rracf->interval != NGX_CONF_UNSET_MSEC)
|
||||
if (brkframe && rracf->interval != NGX_CONF_UNSET_MSEC)
|
||||
{
|
||||
// record interval should work if set, manual mode or not
|
||||
next = rctx->last;
|
||||
|
|
Loading…
Reference in a new issue