Skip to content

Commit

Permalink
Merge pull request #247 from heftig/master
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
Sergey Dryabzhinsky committed May 23, 2017
2 parents d25c56f + 916f3f8 commit a898a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dash/ngx_rtmp_dash_module.c
Expand Up @@ -1565,7 +1565,7 @@ ngx_rtmp_dash_cleanup_dir(ngx_str_t *ppath, ngx_msec_t playlen)
"dash: cleanup '%V' allowed, mpd missing '%s'",
&name, mpd_path);

max_age = 0;
max_age = playlen / 500;

} else if (name.len >= 4 && name.data[name.len - 4] == '.' &&
name.data[name.len - 3] == 'm' &&
Expand Down
6 changes: 1 addition & 5 deletions ngx_rtmp_live_module.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit a898a09

Please sign in to comment.