mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
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:
parent
0d88d95fdf
commit
fc708d1256
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user