From: Dragos Oancea Date: Tue, 27 Aug 2019 11:28:51 +0000 (+0000) Subject: FS-12026 [mod_httapi] fix multichannel file download and play X-Git-Tag: v1.10.2^2~112^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44199e91b5319dc13424e1138ebc48c48423ed5d;p=thirdparty%2Ffreeswitch.git FS-12026 [mod_httapi] fix multichannel file download and play --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index fed78535e2..b0e4e4803c 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -3004,7 +3004,8 @@ static switch_status_t file_open(switch_file_handle_t *handle, const char *path, handle->seekable = context->fh.seekable; handle->speed = context->fh.speed; handle->interval = context->fh.interval; - handle->channels = context->fh.real_channels; + handle->channels = context->fh.channels; + handle->cur_channels = context->fh.real_channels; handle->flags |= SWITCH_FILE_NOMUX; if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) {