FS-9100 #resolve [Recording Fails if There Are Zero Webcams]

This commit is contained in:
Anthony Minessale 2016-04-28 14:32:18 -05:00
parent 94d3f62aef
commit db4693b570
2 changed files with 6 additions and 1 deletions

View File

@ -234,7 +234,7 @@ void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *thread, v
flags = SWITCH_FILE_FLAG_WRITE | SWITCH_FILE_DATA_SHORT;
if (conference->members_with_video && conference_utils_test_flag(conference, CFLAG_TRANSCODE_VIDEO)) {
if (conference_utils_test_flag(conference, CFLAG_TRANSCODE_VIDEO)) {
flags |= SWITCH_FILE_FLAG_VIDEO;
if (canvas) {
char *orig_path = rec->path;

View File

@ -2224,6 +2224,11 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
}
}
if (video_count != canvas->video_count) {
count_changed = 1;
}
canvas->video_count = video_count;
switch_mutex_unlock(conference->member_mutex);