Skip to content

Commit

Permalink
[dev] simplified checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
winshining committed Mar 8, 2024
1 parent 42891da commit 97d51bf
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ngx_rtmp_gop_cache_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,16 +631,14 @@ ngx_rtmp_gop_cache_send(ngx_rtmp_session_t *s)

meta = NULL;

if (cache->meta) {
if (meta_version != cache->meta_version) {
meta = handler->meta_message_pt(s, cache->meta);
if (meta == NULL) {
ngx_rtmp_finalize_session(s);
return;
}

meta_version = cache->meta_version;
if (cache->meta && meta_version != cache->meta_version) {
meta = handler->meta_message_pt(s, cache->meta);
if (meta == NULL) {
ngx_rtmp_finalize_session(s);
return;
}

meta_version = cache->meta_version;
}

/* send metadata */
Expand Down

0 comments on commit 97d51bf

Please sign in to comment.