]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix channel count in embedded file formats
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Aug 2014 19:25:04 +0000 (00:25 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Aug 2014 19:25:04 +0000 (00:25 +0500)
src/mod/applications/mod_dptools/mod_dptools.c
src/mod/applications/mod_httapi/mod_httapi.c

index cf53dfb7f2a6499d78da65ad98fd4cca0e7bb8eb..2127787e37b33d684a3abd806da932d9d3ea7782 100644 (file)
@@ -4555,7 +4555,7 @@ static switch_status_t next_file(switch_file_handle_t *handle)
 
        handle->samples = context->fh.samples;
        handle->cur_samplerate = context->fh.samplerate;
-       handle->cur_channels = context->fh.channels;
+       handle->cur_channels = context->fh.real_channels;
        handle->format = context->fh.format;
        handle->sections = context->fh.sections;
        handle->seekable = context->fh.seekable;
@@ -4747,7 +4747,7 @@ static switch_status_t file_url_file_open(switch_file_handle_t *handle, const ch
        if (status == SWITCH_STATUS_SUCCESS) {
                handle->samples = fh->samples;
                handle->cur_samplerate = fh->samplerate;
-               handle->cur_channels = fh->channels;
+               handle->cur_channels = fh->real_channels;
                handle->format = fh->format;
                handle->sections = fh->sections;
                handle->seekable = fh->seekable;
index a97287be5abc1f30a43994186bc7cdcc13ee7854..f3b1a5997caf390c6fc7b9cc32c7d761e6e84733 100644 (file)
@@ -2893,7 +2893,7 @@ 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.channels;
+       handle->channels = context->fh.real_channels;
        handle->flags |= SWITCH_FILE_NOMUX;
 
        if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) {