]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10091: [mod_conference] Conference play file with full-screen=true has side effect...
authorAnthony Minessale <anthm@freeswitch.org>
Sat, 4 Mar 2017 01:32:30 +0000 (19:32 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Sat, 4 Mar 2017 01:32:30 +0000 (19:32 -0600)
src/mod/applications/mod_conference/conference_video.c

index e6e03ffa5e4d790deea953bc0302ae16c018d22e..c5ba30369f04c2fda3a3b79f068b6e955e44bb73 100644 (file)
@@ -2504,7 +2504,11 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
                canvas->video_count = last_video_count = video_count;
                switch_mutex_unlock(conference->member_mutex);
 
-               switch_core_timer_next(&canvas->timer);
+               if (conference->playing_video_file) {
+                       switch_core_timer_sync(&canvas->timer);
+               } else {
+                       switch_core_timer_next(&canvas->timer);
+               }
 
                now = switch_micro_time_now();
 
@@ -3210,7 +3214,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
                        timestamp = canvas->timer.samplecount;
 
                        if (conference->playing_video_file) {
-                               if (switch_core_file_read_video(&conference->fnode->fh, &write_frame, SVR_FLUSH) == SWITCH_STATUS_SUCCESS) {
+                               if (switch_core_file_read_video(&conference->fnode->fh, &write_frame, SVR_BLOCK) == SWITCH_STATUS_SUCCESS) {
                                        switch_img_free(&file_img);
 
                                        if (canvas->play_file) {