Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
0dc59995
提交
0dc59995
authored
7月 27, 2016
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9382
上级
e89b8a48
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
3 行增加
和
4 行删除
+3
-4
switch_core_media.c
src/switch_core_media.c
+3
-3
switch_ivr_bridge.c
src/switch_ivr_bridge.c
+0
-1
没有找到文件。
src/switch_core_media.c
浏览文件 @
0dc59995
...
@@ -11304,7 +11304,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
...
@@ -11304,7 +11304,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
switch_status_t
status
=
SWITCH_STATUS_FALSE
;
switch_time_t
now
=
switch_micro_time_now
();
switch_time_t
now
=
switch_micro_time_now
();
switch_codec_t
*
codec
=
switch_core_session_get_video_write_codec
(
session
);
switch_codec_t
*
codec
=
switch_core_session_get_video_write_codec
(
session
);
//
switch_timer_t *timer;
switch_timer_t
*
timer
;
switch_media_handle_t
*
smh
;
switch_media_handle_t
*
smh
;
switch_image_t
*
dup_img
=
NULL
,
*
img
=
frame
->
img
;
switch_image_t
*
dup_img
=
NULL
,
*
img
=
frame
->
img
;
switch_status_t
encode_status
;
switch_status_t
encode_status
;
...
@@ -11454,7 +11454,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
...
@@ -11454,7 +11454,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
frame
=
&
write_frame
;
frame
=
&
write_frame
;
frame
->
img
=
img
;
frame
->
img
=
img
;
#if 0
if
(
!
switch_test_flag
(
frame
,
SFF_USE_VIDEO_TIMESTAMP
))
{
if
(
!
switch_test_flag
(
frame
,
SFF_USE_VIDEO_TIMESTAMP
))
{
if
(
!
(
timer
=
switch_core_media_get_timer
(
session
,
SWITCH_MEDIA_TYPE_VIDEO
)))
{
if
(
!
(
timer
=
switch_core_media_get_timer
(
session
,
SWITCH_MEDIA_TYPE_VIDEO
)))
{
...
@@ -11468,7 +11468,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
...
@@ -11468,7 +11468,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
frame
->
timestamp
=
timer
->
samplecount
;
frame
->
timestamp
=
timer
->
samplecount
;
}
}
#endif
switch_clear_flag
(
frame
,
SFF_SAME_IMAGE
);
switch_clear_flag
(
frame
,
SFF_SAME_IMAGE
);
frame
->
m
=
0
;
frame
->
m
=
0
;
...
...
src/switch_ivr_bridge.c
浏览文件 @
0dc59995
...
@@ -195,7 +195,6 @@ static void video_bridge_thread(switch_core_session_t *session, void *obj)
...
@@ -195,7 +195,6 @@ static void video_bridge_thread(switch_core_session_t *session, void *obj)
if
(
switch_channel_media_up
(
b_channel
))
{
if
(
switch_channel_media_up
(
b_channel
))
{
switch_set_flag
(
read_frame
,
SFF_PROXY_PACKET
);
if
(
switch_core_session_write_video_frame
(
vh
->
session_b
,
read_frame
,
SWITCH_IO_FLAG_NONE
,
0
)
!=
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_core_session_write_video_frame
(
vh
->
session_b
,
read_frame
,
SWITCH_IO_FLAG_NONE
,
0
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_cond_next
();
switch_cond_next
();
continue
;
continue
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论