forked from Mirrors/freeswitch
do not print waring on record because we can record a file in stereo and mux stereo to mono on playback
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11939 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a2852700c5
commit
cff0c8b16b
@ -128,7 +128,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
|
||||
fh->pre_buffer_data = switch_core_alloc(fh->memory_pool, fh->pre_buffer_datalen * fh->channels);
|
||||
}
|
||||
|
||||
if (fh->channels > 1) {
|
||||
if (fh->channels > 1 && (flags & SWITCH_FILE_FLAG_READ)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "File has %d channels, muxing to mono will occur.\n", fh->channels);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user