mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed amf creating
This commit is contained in:
@ -130,14 +130,15 @@ ngx_rtmp_amf_put(ngx_rtmp_amf_ctx_t *ctx, void *p, size_t n)
|
|||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l == NULL) {
|
if (ctx->first == NULL) {
|
||||||
l = ln;
|
ctx->first = ln;
|
||||||
ctx->first = l;
|
|
||||||
} else {
|
|
||||||
l->next = ln;
|
|
||||||
l = ln;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (l) {
|
||||||
|
l->next = ln;
|
||||||
|
}
|
||||||
|
|
||||||
|
l = ln;
|
||||||
ctx->link = l;
|
ctx->link = l;
|
||||||
b = l->buf;
|
b = l->buf;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user