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

index fed78535e2285f47b92c32f5ecf8736b8804bb1e..b0e4e4803c75f80399a82d92f21497d5e107184c 100644 (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)) {