]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11610 [mod_http_cache] add video flag to http_cache
authorlazedo <luis.azedo@factorlusitano.com>
Tue, 18 Dec 2018 12:01:56 +0000 (12:01 +0000)
committerlazedo <luis.azedo@factorlusitano.com>
Mon, 14 Jan 2019 16:31:49 +0000 (16:31 +0000)
src/mod/applications/mod_http_cache/mod_http_cache.c

index 2af2cd17707c9089ff875c08e0505d286b52ee16..dd4b1ef2c8d4f1412c7df47236df8723dda20881 100644 (file)
@@ -1708,7 +1708,7 @@ static switch_status_t http_cache_file_open(switch_file_handle_t *handle, const
 {
        switch_status_t status = SWITCH_STATUS_SUCCESS;
        struct http_context *context = switch_core_alloc(handle->memory_pool, sizeof(*context));
-       int file_flags = SWITCH_FILE_DATA_SHORT;
+       int file_flags = SWITCH_FILE_DATA_SHORT | (switch_test_flag(handle, SWITCH_FILE_FLAG_VIDEO) ? SWITCH_FILE_FLAG_VIDEO : 0);
 
        if (handle->params) {
                context->profile = url_cache_http_profile_find(&gcache, switch_event_get_header(handle->params, "profile"));