FS-7502: add patch level for media bugs to call them as needed

This commit is contained in:
Anthony Minessale
2015-04-22 11:01:47 -05:00
committed by Michael Jerris
parent 4149ad1ae2
commit 1e808eee1c
6 changed files with 85 additions and 15 deletions
+1
View File
@@ -251,6 +251,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_pop(switch_core_session_t
SWITCH_DECLARE(switch_status_t) switch_core_media_bug_exec_all(switch_core_session_t *orig_session,
const char *function, switch_media_bug_exec_cb_t cb, void *user_data);
SWITCH_DECLARE(uint32_t) switch_core_media_bug_patch_video(switch_core_session_t *orig_session, switch_frame_t *frame);
SWITCH_DECLARE(uint32_t) switch_core_media_bug_count(switch_core_session_t *orig_session, const char *function);
/*!
\brief Add a media bug to the session
+4 -2
View File
@@ -489,7 +489,8 @@ typedef enum {
SWITCH_ABC_TYPE_TAP_NATIVE_WRITE,
SWITCH_ABC_TYPE_CLOSE,
SWITCH_ABC_TYPE_READ_VIDEO_PING,
SWITCH_ABC_TYPE_STREAM_VIDEO_PING
SWITCH_ABC_TYPE_STREAM_VIDEO_PING,
SWITCH_ABC_TYPE_VIDEO_PATCH
} switch_abc_type_t;
typedef struct {
@@ -1731,7 +1732,8 @@ typedef enum {
SMBF_MASK = (1 << 16),
SMBF_READ_VIDEO_PING = (1 << 17),
SMBF_READ_VIDEO_STREAM = (1 << 18),
SMBF_WRITE_VIDEO_STREAM = (1 << 19)
SMBF_WRITE_VIDEO_STREAM = (1 << 19),
SMBF_VIDEO_PATCH = (1 << 20)
} switch_media_bug_flag_enum_t;
typedef uint32_t switch_media_bug_flag_t;