From: Michael Jerris Date: Fri, 8 Apr 2016 17:40:03 +0000 (-0500) Subject: FS-9042: [core] fix assert when recording native file X-Git-Tag: v1.6.8~5^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a63a9731e892cc460ec2dd31e4603d9d9bfe674;p=thirdparty%2Ffreeswitch.git FS-9042: [core] fix assert when recording native file --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 1220991b0f..e52884fd99 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -2576,8 +2576,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t out_file = switch_core_session_sprintf(session, "%s-out.%s", file, ext); rh->in_fh.pre_buffer_datalen = rh->out_fh.pre_buffer_datalen = fh->pre_buffer_datalen; channels = 1; - switch_set_flag_locked(&rh->in_fh, SWITCH_FILE_NATIVE); - switch_set_flag_locked(&rh->out_fh, SWITCH_FILE_NATIVE); + switch_set_flag(&rh->in_fh, SWITCH_FILE_NATIVE); + switch_set_flag(&rh->out_fh, SWITCH_FILE_NATIVE); if (switch_core_file_open(&rh->in_fh, in_file, channels, read_impl.actual_samples_per_second, file_flags, NULL) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error opening %s\n", in_file);