Skip to content

Commit 5c22bd4

Browse files
committed
[fix] fix a bug posted in issue 1249 in arut/nginx-rtmp-module.
1 parent dd6d60e commit 5c22bd4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ To enable this module, add the following to `/etc/nginx/nginx.conf` and reload N
8888

8989
The above setting **MUST** be located before the directive `events`, or NGINX can not be started.
9090

91-
Updates can be completed via `yum update`. More [about GetPageSpeed repository with other NGINX modules](https://www.getpagespeed.com/redhat).
91+
Updates can be completed via `yum update`. More details about other NGINX modules, refer to [GetPageSpeed repository](https://www.getpagespeed.com/redhat).
9292

9393
For other systems, follow Installation instructions in the next section.
9494

@@ -100,7 +100,7 @@ nginx-http-flv-module has all features that [nginx-rtmp-module](https://github.c
100100

101101
#### On Windows
102102

103-
For details of build steps, please refer to [Building nginx on the Win32 platform with Visual C](http://nginx.org/en/docs/howto_build_on_win32.html), and don't forget to add `--add-module=/path/to/nginx-http-flv-module` in `Run configure script` step.
103+
For details about build steps, please refer to [Building nginx on the Win32 platform with Visual C](http://nginx.org/en/docs/howto_build_on_win32.html), and don't forget to add `--add-module=/path/to/nginx-http-flv-module` in `Run configure script` step.
104104

105105
#### On Unix-like systems
106106

ngx_rtmp_record_module.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -706,10 +706,6 @@ ngx_rtmp_record_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v)
706706
ngx_rtmp_record_ctx_t *ctx;
707707
u_char *p;
708708

709-
if (s->auto_pushed) {
710-
goto next;
711-
}
712-
713709
racf = ngx_rtmp_get_module_app_conf(s, ngx_rtmp_record_module);
714710

715711
if (racf == NULL || racf->rec.nelts == 0) {
@@ -720,10 +716,6 @@ ngx_rtmp_record_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v)
720716
return NGX_ERROR;
721717
}
722718

723-
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
724-
"record: publish %ui nodes",
725-
racf->rec.nelts);
726-
727719
ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_record_module);
728720

729721
ngx_memcpy(ctx->name, v->name, sizeof(ctx->name));
@@ -740,6 +732,14 @@ ngx_rtmp_record_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v)
740732
}
741733
}
742734

735+
if (s->auto_pushed) {
736+
goto next;
737+
}
738+
739+
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
740+
"record: publish %ui nodes",
741+
racf->rec.nelts);
742+
743743
ngx_rtmp_record_start(s);
744744

745745
next:

0 commit comments

Comments
 (0)