]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-12026 [mod_http_cache] fix multichannel file download and play
authorDragos Oancea <dragos@signalwire.com>
Tue, 27 Aug 2019 11:30:05 +0000 (11:30 +0000)
committerDragos Oancea <dragos@signalwire.com>
Tue, 27 Aug 2019 11:30:05 +0000 (11:30 +0000)
src/mod/applications/mod_http_cache/mod_http_cache.c

index e3f8d064930f720a571e43b8282bdcaeb7010caf..ca681d091d26b3174dfc64270925ab5c9214320a 100644 (file)
@@ -1754,6 +1754,7 @@ static switch_status_t http_cache_file_open(switch_file_handle_t *handle, const
        handle->speed = context->fh.speed;
        handle->interval = context->fh.interval;
        handle->channels = context->fh.channels;
+       handle->cur_channels = context->fh.real_channels;
        handle->flags |= SWITCH_FILE_NOMUX;
        handle->pre_buffer_datalen = 0;