mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-10 09:39:33 +02:00
Simplify freeing the data chain
This commit is contained in:
parent
1c3dc989ef
commit
916f3f8374
|
@ -1138,11 +1138,7 @@ ngx_rtmp_live_data(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
|
|||
ss->current_time = cs->timestamp;
|
||||
}
|
||||
|
||||
if (data) {
|
||||
ngx_rtmp_free_shared_chain(cscf, data);
|
||||
}
|
||||
|
||||
if (rpkt && !data) {
|
||||
if (rpkt) {
|
||||
ngx_rtmp_free_shared_chain(cscf, rpkt);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue