]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9100 #resolve [Recording Fails if There Are Zero Webcams]
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Apr 2016 19:32:18 +0000 (14:32 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Apr 2016 19:32:24 +0000 (14:32 -0500)
src/mod/applications/mod_conference/conference_record.c
src/mod/applications/mod_conference/conference_video.c

index 843f04fa189992bea679026a556bbc9952ae5271..7eb8fd0a18ba808fb3f27371c35b92e96ce3eff6 100644 (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;
index 93588a87b6b070ff549cd60a0c433bee7e8d6b45..dd16741fb56656760e118b47844239db84b5d256 100644 (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);