Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
58ba3860
提交
58ba3860
authored
9月 29, 2015
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-8241 #resolve [Conference stops playing video when local_stream changes source]
上级
243811dd
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
22 行增加
和
13 行删除
+22
-13
conference_file.c
src/mod/applications/mod_conference/conference_file.c
+1
-1
conference_video.c
src/mod/applications/mod_conference/conference_video.c
+19
-10
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+1
-1
mod_conference.h
src/mod/applications/mod_conference/mod_conference.h
+1
-1
没有找到文件。
src/mod/applications/mod_conference/conference_file.c
浏览文件 @
58ba3860
...
@@ -299,7 +299,7 @@ switch_status_t conference_file_play(conference_obj_t *conference, char *file, u
...
@@ -299,7 +299,7 @@ switch_status_t conference_file_play(conference_obj_t *conference, char *file, u
fnode
->
file
=
switch_core_strdup
(
fnode
->
pool
,
file
);
fnode
->
file
=
switch_core_strdup
(
fnode
->
pool
,
file
);
if
(
!
conference
->
fnode
||
(
async
&&
!
conference
->
async_fnode
))
{
if
(
!
conference
->
fnode
||
(
async
&&
!
conference
->
async_fnode
))
{
conference_video_fnode_check
(
fnode
);
conference_video_fnode_check
(
fnode
,
-
1
);
}
}
/* Queue the node */
/* Queue the node */
...
...
src/mod/applications/mod_conference/conference_video.c
浏览文件 @
58ba3860
...
@@ -1661,18 +1661,27 @@ void conference_video_patch_fnode(mcu_canvas_t *canvas, conference_file_node_t *
...
@@ -1661,18 +1661,27 @@ void conference_video_patch_fnode(mcu_canvas_t *canvas, conference_file_node_t *
}
else
if
(
status
==
SWITCH_STATUS_IGNORE
)
{
}
else
if
(
status
==
SWITCH_STATUS_IGNORE
)
{
if
(
canvas
&&
fnode
->
layer_id
>
-
1
)
{
if
(
canvas
&&
fnode
->
layer_id
>
-
1
)
{
conference_video_canvas_del_fnode_layer
(
canvas
->
conference
,
fnode
);
conference_video_canvas_del_fnode_layer
(
canvas
->
conference
,
fnode
);
fnode
->
canvas_id
=
canvas
->
canvas_id
;
}
}
}
}
}
}
}
}
void
conference_video_fnode_check
(
conference_file_node_t
*
fnode
)
{
void
conference_video_fnode_check
(
conference_file_node_t
*
fnode
,
int
canvas_id
)
{
mcu_canvas_t
*
canvas
=
fnode
->
conference
->
canvases
[
fnode
->
canvas_id
]
;
mcu_canvas_t
*
canvas
=
NULL
;
if
(
switch_core_file_has_video
(
&
fnode
->
fh
)
&&
switch_core_file_read_video
(
&
fnode
->
fh
,
NULL
,
SVR_CHECK
)
==
SWITCH_STATUS_BREAK
)
{
if
(
switch_core_file_has_video
(
&
fnode
->
fh
)
&&
switch_core_file_read_video
(
&
fnode
->
fh
,
NULL
,
SVR_CHECK
)
==
SWITCH_STATUS_BREAK
)
{
int
full_screen
=
0
;
int
full_screen
=
0
;
char
*
res_id
=
NULL
;
char
*
res_id
=
NULL
;
if
(
fnode
->
canvas_id
==
-
1
)
{
if
(
canvas_id
==
-
1
)
{
return
;
}
fnode
->
canvas_id
=
canvas_id
;
}
canvas
=
fnode
->
conference
->
canvases
[
fnode
->
canvas_id
];
if
(
fnode
->
fh
.
params
&&
fnode
->
conference
->
canvas_count
==
1
)
{
if
(
fnode
->
fh
.
params
&&
fnode
->
conference
->
canvas_count
==
1
)
{
full_screen
=
switch_true
(
switch_event_get_header
(
fnode
->
fh
.
params
,
"full-screen"
));
full_screen
=
switch_true
(
switch_event_get_header
(
fnode
->
fh
.
params
,
"full-screen"
));
}
}
...
@@ -2298,7 +2307,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
...
@@ -2298,7 +2307,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
}
}
if
(
check_async_file
)
{
if
(
check_async_file
)
{
if
(
switch_core_file_read_video
(
&
conference
->
async_fnode
->
fh
,
&
file_frame
,
SVR_
BLOCK
|
SVR_
FLUSH
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_core_file_read_video
(
&
conference
->
async_fnode
->
fh
,
&
file_frame
,
SVR_FLUSH
)
==
SWITCH_STATUS_SUCCESS
)
{
if
((
async_file_img
=
file_frame
.
img
))
{
if
((
async_file_img
=
file_frame
.
img
))
{
file_imgs
[
j
++
]
=
async_file_img
;
file_imgs
[
j
++
]
=
async_file_img
;
}
}
...
@@ -2306,7 +2315,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
...
@@ -2306,7 +2315,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
}
}
if
(
check_file
)
{
if
(
check_file
)
{
if
(
switch_core_file_read_video
(
&
conference
->
fnode
->
fh
,
&
file_frame
,
SVR_
BLOCK
|
SVR_
FLUSH
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_core_file_read_video
(
&
conference
->
fnode
->
fh
,
&
file_frame
,
SVR_FLUSH
)
==
SWITCH_STATUS_SUCCESS
)
{
if
((
normal_file_img
=
file_frame
.
img
))
{
if
((
normal_file_img
=
file_frame
.
img
))
{
file_imgs
[
j
++
]
=
normal_file_img
;
file_imgs
[
j
++
]
=
normal_file_img
;
}
}
...
@@ -2458,19 +2467,19 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
...
@@ -2458,19 +2467,19 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
switch_mutex_unlock
(
conference
->
member_mutex
);
switch_mutex_unlock
(
conference
->
member_mutex
);
}
else
{
}
else
{
if
(
conference
->
async_fnode
&&
conference
->
async_fnode
->
canvas_id
==
canvas
->
canvas_id
)
{
if
(
conference
->
async_fnode
&&
(
conference
->
async_fnode
->
canvas_id
==
canvas
->
canvas_id
||
conference
->
async_fnode
->
canvas_id
==
-
1
)
)
{
if
(
conference
->
async_fnode
->
layer_id
>
-
1
)
{
if
(
conference
->
async_fnode
->
layer_id
>
-
1
)
{
conference_video_patch_fnode
(
canvas
,
conference
->
async_fnode
);
conference_video_patch_fnode
(
canvas
,
conference
->
async_fnode
);
}
else
{
}
else
{
conference_video_fnode_check
(
conference
->
async_fnode
);
conference_video_fnode_check
(
conference
->
async_fnode
,
canvas
->
canvas_id
);
}
}
}
}
if
(
conference
->
fnode
&&
conference
->
fnode
->
canvas_id
==
canvas
->
canvas_id
)
{
if
(
conference
->
fnode
&&
(
conference
->
fnode
->
canvas_id
==
canvas
->
canvas_id
||
conference
->
fnode
->
canvas_id
==
-
1
)
)
{
if
(
conference
->
fnode
->
layer_id
>
-
1
)
{
if
(
conference
->
fnode
->
layer_id
>
-
1
)
{
conference_video_patch_fnode
(
canvas
,
conference
->
fnode
);
conference_video_patch_fnode
(
canvas
,
conference
->
fnode
);
}
else
{
}
else
{
conference_video_fnode_check
(
conference
->
fnode
);
conference_video_fnode_check
(
conference
->
fnode
,
canvas
->
canvas_id
);
}
}
}
}
...
@@ -2542,7 +2551,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
...
@@ -2542,7 +2551,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
timestamp
=
canvas
->
timer
.
samplecount
;
timestamp
=
canvas
->
timer
.
samplecount
;
if
(
conference
->
playing_video_file
)
{
if
(
conference
->
playing_video_file
)
{
if
(
switch_core_file_read_video
(
&
conference
->
fnode
->
fh
,
&
write_frame
,
SVR_
BLOCK
|
SVR_
FLUSH
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_core_file_read_video
(
&
conference
->
fnode
->
fh
,
&
write_frame
,
SVR_FLUSH
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_img_free
(
&
file_img
);
switch_img_free
(
&
file_img
);
if
(
canvas
->
play_file
)
{
if
(
canvas
->
play_file
)
{
...
...
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
58ba3860
...
@@ -667,7 +667,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
...
@@ -667,7 +667,7 @@ void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, void *ob
conference
->
fnode
=
conference
->
fnode
->
next
;
conference
->
fnode
=
conference
->
fnode
->
next
;
if
(
conference
->
fnode
)
{
if
(
conference
->
fnode
)
{
conference_video_fnode_check
(
conference
->
fnode
);
conference_video_fnode_check
(
conference
->
fnode
,
-
1
);
}
}
...
...
src/mod/applications/mod_conference/mod_conference.h
浏览文件 @
58ba3860
...
@@ -930,7 +930,7 @@ video_layout_t *conference_video_get_layout(conference_obj_t *conference, const
...
@@ -930,7 +930,7 @@ video_layout_t *conference_video_get_layout(conference_obj_t *conference, const
void
conference_video_check_avatar
(
conference_member_t
*
member
,
switch_bool_t
force
);
void
conference_video_check_avatar
(
conference_member_t
*
member
,
switch_bool_t
force
);
void
conference_video_find_floor
(
conference_member_t
*
member
,
switch_bool_t
entering
);
void
conference_video_find_floor
(
conference_member_t
*
member
,
switch_bool_t
entering
);
void
conference_video_destroy_canvas
(
mcu_canvas_t
**
canvasP
);
void
conference_video_destroy_canvas
(
mcu_canvas_t
**
canvasP
);
void
conference_video_fnode_check
(
conference_file_node_t
*
fnode
);
void
conference_video_fnode_check
(
conference_file_node_t
*
fnode
,
int
canvas_id
);
switch_status_t
conference_video_set_canvas_bgimg
(
mcu_canvas_t
*
canvas
,
const
char
*
img_path
);
switch_status_t
conference_video_set_canvas_bgimg
(
mcu_canvas_t
*
canvas
,
const
char
*
img_path
);
switch_status_t
conference_al_parse_position
(
al_handle_t
*
al
,
const
char
*
data
);
switch_status_t
conference_al_parse_position
(
al_handle_t
*
al
,
const
char
*
data
);
switch_status_t
conference_video_thread_callback
(
switch_core_session_t
*
session
,
switch_frame_t
*
frame
,
void
*
user_data
);
switch_status_t
conference_video_thread_callback
(
switch_core_session_t
*
session
,
switch_frame_t
*
frame
,
void
*
user_data
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论