Skip to content

fix meta lost when has no further a/v packets#282

Open
vacing wants to merge 2 commits into
winshining:masterfrom
MultimediaLearn:Bugfix/last_meta_lost
Open

fix meta lost when has no further a/v packets#282
vacing wants to merge 2 commits into
winshining:masterfrom
MultimediaLearn:Bugfix/last_meta_lost

Conversation

@vacing
Copy link
Copy Markdown

@vacing vacing commented Apr 24, 2026

No description provided.

Copy link
Copy Markdown
Owner

@winshining winshining left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subscribers of different types use different send handlers.

Comment thread ngx_rtmp_live_module.c Outdated
meta = codec_ctx->meta;
meta_version = codec_ctx->meta_version;

handler = &ngx_rtmp_live_proc_handler;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may be RTMP subscribers and HTTP-FLV subscribers, so it's wrong to use only RTMP send handler here.

Comment thread ngx_rtmp_live_module.c
if (pctx == ctx || pctx->paused) {
continue;
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned above, subscribers of different types use different send handlers:

handler = ngx_rtmp_live_proc_handlers[pctx->protocol];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants