# HG changeset patch # User Igor Sysoev # Date 1315566835 0 # Node ID 3aa3b7bb9f0da363ddf619c652967a1905ff63a6 # Parent dceb4f50966112a951ba33fa238c4019484c964c Bugfix of r4086: directio was always enabled if mp4 file was sent as is. diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c --- a/src/http/modules/ngx_http_mp4_module.c +++ b/src/http/modules/ngx_http_mp4_module.c @@ -410,6 +410,7 @@ ngx_http_mp4_handler(ngx_http_request_t ngx_memzero(&of, sizeof(ngx_open_file_info_t)); of.read_ahead = clcf->read_ahead; + of.directio = NGX_MAX_OFF_T_VALUE; of.valid = clcf->open_file_cache_valid; of.min_uses = clcf->open_file_cache_min_uses; of.errors = clcf->open_file_cache_errors; @@ -534,6 +535,8 @@ ngx_http_mp4_handler(ngx_http_request_t ngx_directio_on_n " \"%s\" failed", path.data); } + of.is_directio = 1; + if (mp4) { mp4->file.directio = 1; }