Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
1fd2e91a
提交
1fd2e91a
authored
10月 06, 2016
作者:
Piotr Gregor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9620 [avmd][windows]: #fix windows build after FS-9605
上级
743b77c9
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
mod_avmd.c
src/mod/applications/mod_avmd/mod_avmd.c
+5
-5
没有找到文件。
src/mod/applications/mod_avmd/mod_avmd.c
浏览文件 @
1fd2e91a
...
...
@@ -217,7 +217,7 @@ struct avmd_detector {
uint8_t
lagged
,
lag
;
};
/*! Type that holds
session information pertinent to the avmd module
. */
/*! Type that holds
avmd detection session information
. */
struct
avmd_session
{
switch_core_session_t
*
session
;
switch_mutex_t
*
mutex
;
...
...
@@ -276,7 +276,7 @@ static void avmd_reloadxml_event_handler(switch_event_t *event);
/* API command */
static
void
avmd_show
(
switch_stream_handle_t
*
stream
,
switch_mutex_t
*
mutex
);
static
void
*
static
void
*
SWITCH_THREAD_FUNC
avmd_detector_func
(
switch_thread_t
*
thread
,
void
*
arg
);
static
uint8_t
...
...
@@ -297,7 +297,7 @@ static switch_status_t avmd_launch_threads(avmd_session_t *s) {
d
->
lag
=
0
;
switch_threadattr_create
(
&
thd_attr
,
avmd_globals
.
pool
);
switch_threadattr_stacksize_set
(
thd_attr
,
SWITCH_THREAD_STACKSIZE
);
if
(
switch_thread_create
(
&
d
->
thread
,
thd_attr
,
avmd_detector_func
,
(
void
*
)
d
,
switch_core_session_get_pool
(
s
->
session
))
!=
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_thread_create
(
&
d
->
thread
,
thd_attr
,
avmd_detector_func
,
d
,
switch_core_session_get_pool
(
s
->
session
))
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_FALSE
;
}
++
idx
;
...
...
@@ -312,7 +312,7 @@ static switch_status_t avmd_launch_threads(avmd_session_t *s) {
d
->
lag
=
idx
+
1
;
switch_threadattr_create
(
&
thd_attr
,
avmd_globals
.
pool
);
switch_threadattr_stacksize_set
(
thd_attr
,
SWITCH_THREAD_STACKSIZE
);
if
(
switch_thread_create
(
&
d
->
thread
,
thd_attr
,
avmd_detector_func
,
(
void
*
)
d
,
switch_core_session_get_pool
(
s
->
session
))
!=
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_thread_create
(
&
d
->
thread
,
thd_attr
,
avmd_detector_func
,
d
,
switch_core_session_get_pool
(
s
->
session
))
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_FALSE
;
}
++
idx
;
...
...
@@ -2116,7 +2116,7 @@ static enum avmd_detection_mode avmd_process_sample(avmd_session_t *s, circ_buff
return
AVMD_DETECT_NONE
;
}
static
void
*
static
void
*
SWITCH_THREAD_FUNC
avmd_detector_func
(
switch_thread_t
*
thread
,
void
*
arg
)
{
size_t
sample_n
=
0
,
samples
=
AVMD_P
;
size_t
pos
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论