]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
do not print waring on record because we can record a file in stereo and mux stereo...
authorBrian West <brian@freeswitch.org>
Thu, 12 Feb 2009 21:05:44 +0000 (21:05 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 12 Feb 2009 21:05:44 +0000 (21:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11939 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_file.c

index f94a5a16d103951796241705b5c81f347b57a7b7..13e63155d518e925ec708560e00e75d968f9f806 100644 (file)
@@ -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);
        }