[Freeswitch-svn] [commit] r11939 - freeswitch/trunk/src
FreeSWITCH SVN
brian at freeswitch.org
Thu Feb 12 13:05:44 PST 2009
Author: brian
Date: Thu Feb 12 15:05:44 2009
New Revision: 11939
Log:
do not print waring on record because we can record a file in stereo and mux stereo to mono on playback
Modified:
freeswitch/trunk/src/switch_core_file.c
Modified: freeswitch/trunk/src/switch_core_file.c
==============================================================================
--- freeswitch/trunk/src/switch_core_file.c (original)
+++ freeswitch/trunk/src/switch_core_file.c Thu Feb 12 15:05:44 2009
@@ -128,7 +128,7 @@
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);
}
More information about the Freeswitch-svn
mailing list