FS-10456: [mod_av] add wav support to mod_av as well as specifying audio_codec -- add av_record_audio_only param

This commit is contained in:
Anthony Minessale 2017-06-30 12:38:03 -05:00
parent 0d88d95fdf
commit fc708d1256
1 changed files with 1 additions and 1 deletions

View 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);
}