mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-13 10:41:27 +00:00
declinatio mortuus obfirmo!
This commit is contained in:
parent
0fd36364c5
commit
54e5011d74
@ -2998,14 +2998,14 @@ static void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *th
|
|||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
||||||
for(;;) {
|
while(!no_data) {
|
||||||
switch_mutex_lock(member->audio_out_mutex);
|
switch_mutex_lock(member->audio_out_mutex);
|
||||||
if ((rlen = (uint32_t) switch_buffer_read(member->mux_buffer, data_buf, data_buf_len))) {
|
if ((rlen = (uint32_t) switch_buffer_read(member->mux_buffer, data_buf, data_buf_len))) {
|
||||||
len = (switch_size_t) rlen / sizeof(int16_t);
|
len = (switch_size_t) rlen / sizeof(int16_t);
|
||||||
switch_core_file_write(&fh, data_buf, &len);
|
switch_core_file_write(&fh, data_buf, &len);
|
||||||
} else {
|
} else {
|
||||||
break;
|
no_data = 1;
|
||||||
}
|
}
|
||||||
switch_mutex_unlock(member->audio_out_mutex);
|
switch_mutex_unlock(member->audio_out_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user