diff src/http/modules/ngx_http_flv_module.c @ 1799:0b5b94805d26

optimization
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Dec 2007 20:32:43 +0000
parents 25c93614e6b9
children 67a29af877ed 81f4bf441eb0
line wrap: on
line diff
--- a/src/http/modules/ngx_http_flv_module.c
+++ b/src/http/modules/ngx_http_flv_module.c
@@ -111,10 +111,9 @@ ngx_http_flv_handler(ngx_http_request_t 
     of.errors = clcf->open_file_cache_errors;
     of.events = clcf->open_file_cache_events;
 
-    rc = ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool);
-
-    if (rc == NGX_ERROR) {
-
+    if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
+        != NGX_OK)
+    {
         switch (of.err) {
 
         case 0: