]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: return cng frames when waiting for a key
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 29 Apr 2015 21:07:32 +0000 (16:07 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:27 +0000 (12:47 -0500)
src/switch_core_media.c

index 7ed3543d0df17a0a41a4d6f3c46b76035431e833..d889a52f90f709f36b5d5a5c23e74ae92805d632 100644 (file)
@@ -10430,6 +10430,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_video_frame(switch_core
                if (switch_test_flag((*frame), SFF_WAIT_KEY_FRAME)) {
                        switch_core_session_request_video_refresh(session);
                        switch_clear_flag((*frame), SFF_WAIT_KEY_FRAME);
+                       *frame = &runtime.dummy_cng_frame;
+                       switch_yield(20000);
+                       return SWITCH_STATUS_SUCCESS;
                }
 
                if (decode_status == SWITCH_STATUS_MORE_DATA || !(*frame)->img) {