]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: wait for video ready on answer
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 7 Apr 2015 23:23:59 +0000 (18:23 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:17 +0000 (12:47 -0500)
src/switch_channel.c

index 127bf13c693f7a6bfb117d5f78cdf0349a83918a..0c271468dd9b40979466f76bafd3d76e9b67fade 100644 (file)
@@ -3771,6 +3771,10 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_answer(switch_channel_t *
        if (switch_core_session_in_thread(channel->session)) {
                const char *delay;
 
+               if (switch_channel_test_flag(channel, CF_VIDEO)) {
+                       switch_channel_wait_for_flag(channel, CF_VIDEO_READY, SWITCH_TRUE, 10000, NULL);
+               }
+               
                if ((delay = switch_channel_get_variable(channel, "answer_delay"))) {
                        uint32_t msec = atoi(delay);