mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-10249: [mod_av] Audio gradually falls behind video in recordings #comment backport to 1.6
This commit is contained in:
@@ -228,6 +228,7 @@ struct switch_media_bug {
|
||||
switch_image_t *spy_img[2];
|
||||
switch_vid_spy_fmt_t spy_fmt;
|
||||
switch_thread_t *video_bug_thread;
|
||||
switch_mm_t mm;
|
||||
struct switch_media_bug *next;
|
||||
};
|
||||
|
||||
|
||||
@@ -351,6 +351,9 @@ SWITCH_DECLARE(void) switch_core_media_bug_set_read_demux_frame(_In_ switch_medi
|
||||
*/
|
||||
SWITCH_DECLARE(switch_core_session_t *) switch_core_media_bug_get_session(_In_ switch_media_bug_t *bug);
|
||||
|
||||
SWITCH_DECLARE(void) switch_core_media_bug_set_media_params(switch_media_bug_t *bug, switch_mm_t *mm);
|
||||
SWITCH_DECLARE(void) switch_core_media_bug_get_media_params(switch_media_bug_t *bug, switch_mm_t *mm);
|
||||
|
||||
/*!
|
||||
\brief Test for the existance of a flag on an media bug
|
||||
\param bug the object to test
|
||||
|
||||
@@ -301,41 +301,6 @@ struct switch_file_interface {
|
||||
struct switch_file_interface *next;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
SWITCH_VIDEO_ENCODE_SPEED_DEFAULT = 0,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_FAST = 0,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_MEDIUM,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_SLOW
|
||||
} switch_video_encode_speed_t;
|
||||
|
||||
typedef enum {
|
||||
SWITCH_VIDEO_PROFILE_BASELINE,
|
||||
SWITCH_VIDEO_PROFILE_MAIN,
|
||||
SWITCH_VIDEO_PROFILE_HIGH
|
||||
} switch_video_profile_t;
|
||||
|
||||
typedef struct switch_mm_s {
|
||||
int samplerate;
|
||||
int channels;
|
||||
int keyint;
|
||||
int ab;
|
||||
int vb;
|
||||
int vw;
|
||||
int vh;
|
||||
int cbr;
|
||||
float fps;
|
||||
float source_fps;
|
||||
int vbuf;
|
||||
switch_video_profile_t vprofile;
|
||||
switch_video_encode_speed_t vencspd;
|
||||
uint8_t try_hardware_encoder;
|
||||
int scale_w;
|
||||
int scale_h;
|
||||
switch_img_fmt_t fmt;
|
||||
char *auth_username;
|
||||
char *auth_password;
|
||||
} switch_mm_t;
|
||||
|
||||
/*! an abstract representation of a file handle (some parameters based on compat with libsndfile) */
|
||||
struct switch_file_handle {
|
||||
/*! the interface of the module that implemented the current file type */
|
||||
|
||||
@@ -2624,6 +2624,42 @@ typedef enum {
|
||||
SCFC_PAUSE_READ
|
||||
} switch_file_command_t;
|
||||
|
||||
typedef enum {
|
||||
SWITCH_VIDEO_ENCODE_SPEED_DEFAULT = 0,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_FAST = 0,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_MEDIUM,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_SLOW
|
||||
} switch_video_encode_speed_t;
|
||||
|
||||
typedef enum {
|
||||
SWITCH_VIDEO_PROFILE_BASELINE,
|
||||
SWITCH_VIDEO_PROFILE_MAIN,
|
||||
SWITCH_VIDEO_PROFILE_HIGH
|
||||
} switch_video_profile_t;
|
||||
|
||||
typedef struct switch_mm_s {
|
||||
int samplerate;
|
||||
int channels;
|
||||
int keyint;
|
||||
int ab;
|
||||
int vb;
|
||||
int vw;
|
||||
int vh;
|
||||
int cbr;
|
||||
float fps;
|
||||
float source_fps;
|
||||
int vbuf;
|
||||
switch_video_profile_t vprofile;
|
||||
switch_video_encode_speed_t vencspd;
|
||||
uint8_t try_hardware_encoder;
|
||||
int scale_w;
|
||||
int scale_h;
|
||||
switch_img_fmt_t fmt;
|
||||
char *auth_username;
|
||||
char *auth_password;
|
||||
} switch_mm_t;
|
||||
|
||||
|
||||
SWITCH_END_EXTERN_C
|
||||
#endif
|
||||
/* For Emacs:
|
||||
|
||||
Reference in New Issue
Block a user