FS-7500: make 15fps the min detected speed

This commit is contained in:
Anthony Minessale 2015-04-20 15:35:03 -05:00 committed by Michael Jerris
parent ad20119652
commit 2a36066ea0
1 changed files with 6 additions and 2 deletions

View File

@ -316,7 +316,8 @@ SWITCH_DECLARE(uint32_t) switch_core_media_get_video_fps(switch_core_session_t *
{
switch_media_handle_t *smh;
time_t now;
uint32_t fps;
switch_assert(session);
if (!(smh = session->media_handle)) {
@ -333,7 +334,10 @@ SWITCH_DECLARE(uint32_t) switch_core_media_get_video_fps(switch_core_session_t *
return 0;
}
return switch_round_to_step(smh->vid_frames / (now - smh->vid_started), 5);
fps = switch_round_to_step(smh->vid_frames / (now - smh->vid_started), 5);
if (fps < 15) fps = 15;
return fps;
}
SWITCH_DECLARE(void) switch_core_media_pass_zrtp_hash2(switch_core_session_t *aleg_session, switch_core_session_t *bleg_session)