FS-7500: return cng frames when waiting for a key

This commit is contained in:
Anthony Minessale 2015-04-29 16:07:32 -05:00 committed by Michael Jerris
parent 01a5756701
commit 33d9b8066b
1 changed files with 3 additions and 0 deletions

View 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) {