]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10456: [mod_av] add wav support to mod_av as well as specifying audio_codec -...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Jun 2017 17:38:03 +0000 (12:38 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 30 Jun 2017 17:38:07 +0000 (12:38 -0500)
src/mod/applications/mod_av/avformat.c

index 663ae0b426600bc54ae94c0bf0fa5a46f527b480..a0a6f19b87c325831ed3e00682aa13559b781649 100644 (file)
@@ -1908,7 +1908,7 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
                }
        }
 
-       if (!strcasecmp(ext, "wav")) {
+       if (!strcasecmp(ext, "wav") || switch_true(switch_event_get_header(handle->params, "av_record_audio_only"))) {
                context->has_video = 0;
                switch_clear_flag(handle, SWITCH_FILE_FLAG_VIDEO);
        }