Mercurial > hg > nginx
comparison src/http/modules/ngx_http_flv_module.c @ 781:836f099aa5cb
allow ranges for full flv files
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Oct 2006 07:47:00 +0000 |
parents | 589841f06b87 |
children | b310630d129e |
comparison
equal
deleted
inserted
replaced
780:6826f3b657d4 | 781:836f099aa5cb |
---|---|
212 b->last = ngx_flv_header + sizeof(ngx_flv_header) - 1; | 212 b->last = ngx_flv_header + sizeof(ngx_flv_header) - 1; |
213 b->memory = 1; | 213 b->memory = 1; |
214 | 214 |
215 out[0].buf = b; | 215 out[0].buf = b; |
216 out[0].next = &out[1]; | 216 out[0].next = &out[1]; |
217 } | 217 |
218 } else { | |
219 r->allow_ranges = 1; | |
220 } | |
221 | |
218 | 222 |
219 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); | 223 b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); |
220 if (b == NULL) { | 224 if (b == NULL) { |
221 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 225 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
222 } | 226 } |