From cff0c8b16bcc452677610f41abbdc92f000a855a Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 12 Feb 2009 21:05:44 +0000 Subject: [PATCH] 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 --- src/switch_core_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_file.c b/src/switch_core_file.c index f94a5a16d1..13e63155d5 100644 --- a/src/switch_core_file.c +++ b/src/switch_core_file.c @@ -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); }