Merge pull request #184 from Stvad/dev

Infinite loop fix #145
This commit is contained in:
Sergey 2016-11-25 23:50:01 +03:00 committed by GitHub
commit dbcb7aa966

View file

@ -1142,7 +1142,7 @@ ngx_rtmp_live_data(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
ngx_rtmp_free_shared_chain(cscf, data);
}
if (rpkt) {
if (rpkt && !data) {
ngx_rtmp_free_shared_chain(cscf, rpkt);
}