mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-19 17:41:08 +02:00
added ifdef conditional on ngx_lock_fd
This commit is contained in:
parent
479a574cec
commit
c752e0696c
|
@ -482,6 +482,7 @@ ngx_rtmp_record_node_open(ngx_rtmp_session_t *s,
|
|||
return NGX_OK;
|
||||
}
|
||||
|
||||
#if !(NGX_WIN32)
|
||||
if (rracf->lock_file) {
|
||||
err = ngx_lock_fd(rctx->file.fd);
|
||||
if (err) {
|
||||
|
@ -489,6 +490,7 @@ ngx_rtmp_record_node_open(ngx_rtmp_session_t *s,
|
|||
"record: %V lock failed", &rracf->id);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
ngx_log_debug2(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
|
||||
"record: %V opened '%V'", &rracf->id, &path);
|
||||
|
|
Loading…
Reference in a new issue