mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
minor fixes in control module
This commit is contained in:
@ -20,10 +20,6 @@ static char * ngx_rtmp_control_merge_loc_conf(ngx_conf_t *cf,
|
||||
#define NGX_RTMP_CONTROL_ALL 0xff
|
||||
#define NGX_RTMP_CONTROL_RECORD 0x01
|
||||
|
||||
/*
|
||||
* global: stat-{bufs-{total,free,used}, total bytes in/out, bw in/out} - cscf
|
||||
*/
|
||||
|
||||
|
||||
typedef struct {
|
||||
ngx_uint_t control;
|
||||
@ -222,7 +218,7 @@ ngx_rtmp_control_record(ngx_http_request_t *r)
|
||||
return ngx_http_send_header(r);
|
||||
|
||||
error:
|
||||
r->headers_out.status = NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||
r->headers_out.status = NGX_HTTP_BAD_REQUEST;
|
||||
r->headers_out.content_length_n = msg.len;
|
||||
|
||||
b = ngx_calloc_buf(r->pool);
|
||||
|
Reference in New Issue
Block a user