Skip to content

Commit

Permalink
support for nginx 1.11.5-style cache-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
arut committed Oct 7, 2016
1 parent c0bf381 commit 5150993
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dash/ngx_rtmp_dash_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,14 +1413,22 @@ ngx_rtmp_dash_cleanup_dir(ngx_str_t *ppath, ngx_msec_t playlen)
}


#if (nginx_version >= 1011005)
static ngx_msec_t
#else
static time_t
#endif
ngx_rtmp_dash_cleanup(void *data)
{
ngx_rtmp_dash_cleanup_t *cleanup = data;

ngx_rtmp_dash_cleanup_dir(&cleanup->path, cleanup->playlen);

#if (nginx_version >= 1011005)
return cleanup->playlen * 2;
#else
return cleanup->playlen / 500;
#endif
}


Expand Down
8 changes: 8 additions & 0 deletions hls/ngx_rtmp_hls_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2210,14 +2210,22 @@ ngx_rtmp_hls_cleanup_dir(ngx_str_t *ppath, ngx_msec_t playlen)
}


#if (nginx_version >= 1011005)
static ngx_msec_t
#else
static time_t
#endif
ngx_rtmp_hls_cleanup(void *data)
{
ngx_rtmp_hls_cleanup_t *cleanup = data;

ngx_rtmp_hls_cleanup_dir(&cleanup->path, cleanup->playlen);

#if (nginx_version >= 1011005)
return cleanup->playlen * 2;
#else
return cleanup->playlen / 500;
#endif
}


Expand Down

0 comments on commit 5150993

Please sign in to comment.