FS-10269: [mod_conference] conference recording pause doesn't work correctly for video #resolve

This commit is contained in:
Anthony Minessale committed 2017-05-30 16:34:48 -05:00
1 parent 3341413254
commit c15a7d1f89
4 files changed
+50 -5

No files matched your search

+8
View File
@@ -533,6 +533,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh,
return SWITCH_STATUS_FALSE;
}
if (switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
return SWITCH_STATUS_SUCCESS;
}
if (!switch_test_flag(fh, SWITCH_FILE_NATIVE) && fh->native_rate != fh->samplerate) {
if (!fh->resampler) {
if (switch_resample_create(&fh->resampler,
@@ -612,6 +616,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write_video(switch_file_handle_
return SWITCH_STATUS_FALSE;
}
if (switch_test_flag(fh, SWITCH_FILE_PAUSE)) {
return SWITCH_STATUS_SUCCESS;
}
return fh->file_interface->file_write_video(fh, frame);
}