Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
尘离序散
obs-studio
提交
f84e490e
O
obs-studio
项目概览
尘离序散
/
obs-studio
与 Fork 源项目一致
从无法访问的项目Fork
通知
30
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obs-studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f84e490e
编写于
7月 07, 2018
作者:
J
Jim
提交者:
GitHub
7月 07, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1355 from allenh1/fix-gcc-9-warnings
Fix GCC 9 Warnings
上级
b0027221
e3356d5f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
14 deletion
+5
-14
libobs/obs-scene.c
libobs/obs-scene.c
+2
-11
libobs/obs.c
libobs/obs.c
+3
-3
未找到文件。
libobs/obs-scene.c
浏览文件 @
f84e490e
...
...
@@ -2235,7 +2235,7 @@ obs_data_t *obs_sceneitem_get_private_settings(obs_sceneitem_t *item)
return
item
->
private_settings
;
}
static
inline
transform_val
(
struct
vec2
*
v2
,
struct
matrix4
*
transform
)
static
inline
void
transform_val
(
struct
vec2
*
v2
,
struct
matrix4
*
transform
)
{
struct
vec3
v
;
vec3_set
(
&
v
,
v2
->
x
,
v2
->
y
,
0
.
0
f
);
...
...
@@ -2644,11 +2644,6 @@ static void build_current_order_info(obs_scene_t *scene,
obs_sceneitem_t
*
item
=
scene
->
first_item
;
while
(
item
)
{
struct
obs_sceneitem_order_info
info
=
{
.
group
=
NULL
,
.
item
=
item
};
da_push_back
(
items
,
&
item
);
if
(
item
->
is_group
)
{
...
...
@@ -2659,8 +2654,6 @@ static void build_current_order_info(obs_scene_t *scene,
obs_sceneitem_t
*
sub_item
=
sub_scene
->
first_item
;
while
(
sub_item
)
{
info
.
group
=
item
;
info
.
item
=
sub_item
;
da_push_back
(
items
,
&
item
);
sub_item
=
sub_item
->
next
;
...
...
@@ -2679,7 +2672,6 @@ static void build_current_order_info(obs_scene_t *scene,
static
bool
sceneitems_match2
(
obs_scene_t
*
scene
,
struct
obs_sceneitem_order_info
*
items
,
size_t
size
)
{
obs_sceneitem_t
*
item
=
scene
->
first_item
;
struct
obs_sceneitem_order_info
*
cur_items
;
size_t
cur_size
;
...
...
@@ -2693,7 +2685,7 @@ static bool sceneitems_match2(obs_scene_t *scene,
struct
obs_sceneitem_order_info
*
new
=
&
items
[
i
];
struct
obs_sceneitem_order_info
*
old
=
&
cur_items
[
i
];
if
(
new
->
group
!=
old
->
group
||
new
->
item
!=
new
->
item
)
{
if
(
new
->
group
!=
old
->
group
||
new
->
item
!=
old
->
item
)
{
bfree
(
cur_items
);
return
false
;
}
...
...
@@ -2713,7 +2705,6 @@ bool obs_scene_reorder_items2(obs_scene_t *scene,
obs_scene_addref
(
scene
);
full_lock
(
scene
);
bool
order_matches
=
true
;
if
(
sceneitems_match2
(
scene
,
item_order
,
item_order_size
))
{
full_unlock
(
scene
);
obs_scene_release
(
scene
);
...
...
libobs/obs.c
浏览文件 @
f84e490e
...
...
@@ -789,11 +789,11 @@ char *obs_find_data_file(const char *file)
{
struct
dstr
path
=
{
0
};
c
onst
c
har
*
result
=
find_libobs_data_file
(
file
);
char
*
result
=
find_libobs_data_file
(
file
);
if
(
result
)
return
result
;
for
(
in
t
i
=
0
;
i
<
core_module_paths
.
num
;
++
i
)
{
for
(
size_
t
i
=
0
;
i
<
core_module_paths
.
num
;
++
i
)
{
if
(
check_path
(
file
,
core_module_paths
.
array
[
i
].
array
,
&
path
))
return
path
.
array
;
}
...
...
@@ -811,7 +811,7 @@ void obs_add_data_path(const char *path)
bool
obs_remove_data_path
(
const
char
*
path
)
{
for
(
in
t
i
=
0
;
i
<
core_module_paths
.
num
;
++
i
)
{
for
(
size_
t
i
=
0
;
i
<
core_module_paths
.
num
;
++
i
)
{
int
result
=
dstr_cmp
(
&
core_module_paths
.
array
[
i
],
path
);
if
(
result
==
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录