mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
FS-7499: tweaks to rate of fir/pli
This commit is contained in:
parent
063eec1e8e
commit
ae44bd27e2
@ -48,7 +48,7 @@ static void switch_core_media_set_r_sdp_codec_string(switch_core_session_t *sess
|
|||||||
#define MAX_CODEC_CHECK_FRAMES 50//x:mod_sofia.h
|
#define MAX_CODEC_CHECK_FRAMES 50//x:mod_sofia.h
|
||||||
#define MAX_MISMATCH_FRAMES 5//x:mod_sofia.h
|
#define MAX_MISMATCH_FRAMES 5//x:mod_sofia.h
|
||||||
#define type2str(type) type == SWITCH_MEDIA_TYPE_VIDEO ? "video" : "audio"
|
#define type2str(type) type == SWITCH_MEDIA_TYPE_VIDEO ? "video" : "audio"
|
||||||
#define VIDEO_REFRESH_FREQ 50000
|
#define VIDEO_REFRESH_FREQ 1000000
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SMF_INIT = (1 << 0),
|
SMF_INIT = (1 << 0),
|
||||||
|
@ -2676,7 +2676,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_remote_address(switch_rtp_t *rtp_
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static const char *dtls_state_names_t[] = {"HANDSHAKE", "SETUP", "READY", "FAIL", "INVALID"};
|
static const char *dtls_state_names_t[] = {"OFF", "HANDSHAKE", "SETUP", "READY", "FAIL", "INVALID"};
|
||||||
static const char *dtls_state_names(dtls_state_t s)
|
static const char *dtls_state_names(dtls_state_t s)
|
||||||
{
|
{
|
||||||
if (s > DS_INVALID) {
|
if (s > DS_INVALID) {
|
||||||
@ -2766,7 +2766,6 @@ static int dtls_state_ready(switch_rtp_t *rtp_session, switch_dtls_t *dtls)
|
|||||||
if (dtls->new_state) {
|
if (dtls->new_state) {
|
||||||
if (rtp_session->flags[SWITCH_RTP_FLAG_VIDEO]) {
|
if (rtp_session->flags[SWITCH_RTP_FLAG_VIDEO]) {
|
||||||
switch_core_session_t *other_session;
|
switch_core_session_t *other_session;
|
||||||
rtp_session->fir_count++;
|
|
||||||
|
|
||||||
if (rtp_session->session && switch_core_session_get_partner(rtp_session->session, &other_session) == SWITCH_STATUS_SUCCESS) {
|
if (rtp_session->session && switch_core_session_get_partner(rtp_session->session, &other_session) == SWITCH_STATUS_SUCCESS) {
|
||||||
switch_core_session_request_video_refresh(other_session);
|
switch_core_session_request_video_refresh(other_session);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user