Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
fd814904
提交
fd814904
authored
2月 17, 2015
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-7513: cleanup
上级
049bcf95
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
13 行删除
+13
-13
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+8
-8
switch_core_video.c
src/switch_core_video.c
+5
-5
没有找到文件。
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
fd814904
...
...
@@ -1078,6 +1078,10 @@ static void layer_set_logo(conference_member_t *member, mcu_layer_t *layer, cons
goto end;
}
if (path) {
switch_img_free(&layer->logo_img);
}
if (*path == '{') {
dup = strdup(path);
path = dup;
...
...
@@ -1117,12 +1121,6 @@ static void layer_set_logo(conference_member_t *member, mcu_layer_t *layer, cons
}
}
if (path) {
switch_img_free(&layer->logo_img);
}
if (path && strcasecmp(path, "clear")) {
layer->logo_img = switch_img_read_png(path);
}
...
...
@@ -8432,8 +8430,10 @@ static switch_status_t conf_api_sub_vid_logo_img(conference_member_t *member, sw
}
layer = &member->conference->canvas->layers[member->video_layer_id];
member->video_logo = switch_core_strdup(member->pool, text);
if (!strcasecmp(text, "clear")) {
member->video_logo = switch_core_strdup(member->pool, text);
}
layer_set_logo(member, layer, text);
...
...
src/switch_core_video.c
浏览文件 @
fd814904
...
...
@@ -856,30 +856,30 @@ SWITCH_DECLARE(switch_image_t *) switch_img_read_png(const char* file_name)
/* open file and test for it being a png */
FILE
*
fp
=
fopen
(
file_name
,
"rb"
);
if
(
!
fp
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"File %s could not be opened for reading"
,
file_name
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"File %s could not be opened for reading
\n
"
,
file_name
);
goto
end
;
}
fread
(
header
,
1
,
8
,
fp
);
if
(
png_sig_cmp
(
header
,
0
,
8
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"File %s is not recognized as a PNG file"
,
file_name
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"File %s is not recognized as a PNG file
\n
"
,
file_name
);
goto
end
;
}
png_ptr
=
png_create_read_struct
(
PNG_LIBPNG_VER_STRING
,
NULL
,
NULL
,
NULL
);
if
(
!
png_ptr
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"png_create_read_struct failed"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"png_create_read_struct failed
\n
"
);
goto
end
;
}
info_ptr
=
png_create_info_struct
(
png_ptr
);
if
(
!
info_ptr
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"png_create_info_struct failed"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"png_create_info_struct failed
\n
"
);
goto
end
;
}
if
(
setjmp
(
png_jmpbuf
(
png_ptr
)))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error during init_io"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error during init_io
\n
"
);
goto
end
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论