FS-12026 [mod_httapi] fix multichannel file download and play

This commit is contained in:
Dragos Oancea 2019-08-27 11:28:51 +00:00
parent b8e14cb9b5
commit 44199e91b5
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {