mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-11 14:51:08 +02:00
fixed amf creating
This commit is contained in:
parent
f118918a47
commit
c34d07c012
|
@ -130,14 +130,15 @@ ngx_rtmp_amf_put(ngx_rtmp_amf_ctx_t *ctx, void *p, size_t n)
|
|||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if (l == NULL) {
|
||||
l = ln;
|
||||
ctx->first = l;
|
||||
} else {
|
||||
l->next = ln;
|
||||
l = ln;
|
||||
if (ctx->first == NULL) {
|
||||
ctx->first = ln;
|
||||
}
|
||||
|
||||
if (l) {
|
||||
l->next = ln;
|
||||
}
|
||||
|
||||
l = ln;
|
||||
ctx->link = l;
|
||||
b = l->buf;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue