Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
尘离序散
obs-studio
提交
0c1d121f
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,发现更多精彩内容 >>
提交
0c1d121f
编写于
2月 08, 2015
作者:
J
jp9000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove various unused variables
Unused variables detected by mingw
上级
f9d4a957
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
10 addition
and
28 deletion
+10
-28
deps/glad/src/glad_wgl.c
deps/glad/src/glad_wgl.c
+2
-2
libobs/obs-win-crash-handler.c
libobs/obs-win-crash-handler.c
+0
-3
libobs/util/platform-windows.c
libobs/util/platform-windows.c
+0
-1
obs/obs-app.cpp
obs/obs-app.cpp
+1
-2
plugins/win-capture/cursor-capture.c
plugins/win-capture/cursor-capture.c
+0
-1
plugins/win-capture/duplicator-monitor-capture.c
plugins/win-capture/duplicator-monitor-capture.c
+1
-2
plugins/win-capture/game-capture.c
plugins/win-capture/game-capture.c
+0
-3
plugins/win-capture/graphics-hook/gl-capture.c
plugins/win-capture/graphics-hook/gl-capture.c
+0
-1
plugins/win-capture/graphics-hook/graphics-hook.c
plugins/win-capture/graphics-hook/graphics-hook.c
+2
-2
plugins/win-capture/inject-helper/inject-helper.c
plugins/win-capture/inject-helper/inject-helper.c
+1
-2
plugins/win-capture/monitor-capture.c
plugins/win-capture/monitor-capture.c
+2
-5
plugins/win-dshow/win-dshow.cpp
plugins/win-dshow/win-dshow.cpp
+0
-2
plugins/win-wasapi/win-wasapi.cpp
plugins/win-wasapi/win-wasapi.cpp
+1
-2
未找到文件。
deps/glad/src/glad_wgl.c
浏览文件 @
0c1d121f
...
...
@@ -583,8 +583,8 @@ static void find_extensionsWGL(void) {
}
static
void
find_coreWGL
(
HDC
hdc
)
{
int
major
=
9
;
int
minor
=
9
;
//
int major = 9;
//
int minor = 9;
GLADWGLhdc
=
hdc
;
}
...
...
libobs/obs-win-crash-handler.c
浏览文件 @
0c1d121f
...
...
@@ -295,9 +295,6 @@ static inline bool walk_stack(struct exception_handler_data *data,
data
->
process
,
thread
,
&
trace
->
frame
,
&
trace
->
context
,
NULL
,
data
->
sym_function_table_access64
,
data
->
sym_get_module_base64
,
NULL
);
int
last_error
=
GetLastError
();
if
(
!
success
)
return
false
;
...
...
libobs/util/platform-windows.c
浏览文件 @
0c1d121f
...
...
@@ -338,7 +338,6 @@ int os_glob(const char *pattern, int flags, os_glob_t **pglob)
HANDLE
handle
;
WIN32_FIND_DATA
wfd
;
int
ret
=
-
1
;
os_glob_t
*
out
=
NULL
;
wchar_t
*
w_path
;
da_init
(
files
);
...
...
obs/obs-app.cpp
浏览文件 @
0c1d121f
...
...
@@ -588,7 +588,6 @@ static void main_crash_handler(const char *format, va_list args, void *param)
static
void
load_debug_privilege
(
void
)
{
const
DWORD
flags
=
TOKEN_ADJUST_PRIVILEGES
|
TOKEN_QUERY
;
bool
success
=
false
;
TOKEN_PRIVILEGES
tp
;
HANDLE
token
;
LUID
val
;
...
...
@@ -602,7 +601,7 @@ static void load_debug_privilege(void)
tp
.
Privileges
[
0
].
Luid
=
val
;
tp
.
Privileges
[
0
].
Attributes
=
SE_PRIVILEGE_ENABLED
;
success
=
!!
AdjustTokenPrivileges
(
token
,
false
,
&
tp
,
AdjustTokenPrivileges
(
token
,
false
,
&
tp
,
sizeof
(
tp
),
NULL
,
NULL
);
}
...
...
plugins/win-capture/cursor-capture.c
浏览文件 @
0c1d121f
...
...
@@ -133,7 +133,6 @@ static inline uint8_t *cursor_capture_icon_bitmap(ICONINFO *ii,
static
inline
bool
cursor_capture_icon
(
struct
cursor_data
*
data
,
HICON
icon
)
{
bool
success
=
false
;
uint8_t
*
bitmap
;
uint32_t
height
;
uint32_t
width
;
...
...
plugins/win-capture/duplicator-monitor-capture.c
浏览文件 @
0c1d121f
...
...
@@ -271,8 +271,7 @@ static obs_properties_t *duplicator_capture_properties(void *unused)
"monitor"
,
TEXT_MONITOR
,
OBS_COMBO_TYPE_LIST
,
OBS_COMBO_FORMAT_INT
);
obs_property_t
*
capture_cursor
=
obs_properties_add_bool
(
props
,
"capture_cursor"
,
TEXT_CAPTURE_CURSOR
);
obs_properties_add_bool
(
props
,
"capture_cursor"
,
TEXT_CAPTURE_CURSOR
);
obs_enter_graphics
();
...
...
plugins/win-capture/game-capture.c
浏览文件 @
0c1d121f
...
...
@@ -1146,8 +1146,6 @@ static void insert_preserved_val(obs_property_t *p, const char *val)
static
bool
window_changed_callback
(
obs_properties_t
*
ppts
,
obs_property_t
*
p
,
obs_data_t
*
settings
)
{
const
char
*
active_window
=
obs_data_get_string
(
settings
,
SETTING_ACTIVE_WINDOW
);
const
char
*
cur_val
;
bool
match
=
false
;
size_t
i
=
0
;
...
...
@@ -1196,7 +1194,6 @@ static BOOL CALLBACK EnumFirstMonitor(HMONITOR monitor, HDC hdc,
static
obs_properties_t
*
game_capture_properties
(
void
*
data
)
{
struct
game_capture
*
gc
=
data
;
HMONITOR
monitor
;
uint32_t
cx
=
1920
;
uint32_t
cy
=
1080
;
...
...
plugins/win-capture/graphics-hook/gl-capture.c
浏览文件 @
0c1d121f
...
...
@@ -697,7 +697,6 @@ static void gl_capture(HDC hdc)
{
static
bool
functions_initialized
=
false
;
static
bool
critical_failure
=
false
;
static
bool
reacquireing
=
false
;
if
(
critical_failure
)
{
return
;
...
...
plugins/win-capture/graphics-hook/graphics-hook.c
浏览文件 @
0c1d121f
...
...
@@ -274,8 +274,8 @@ static inline bool dxgi_hookable(void)
static
inline
bool
attempt_hook
(
void
)
{
static
bool
ddraw_hooked
=
false
;
static
bool
d3d8_hooked
=
false
;
//
static bool ddraw_hooked = false;
//
static bool d3d8_hooked = false;
static
bool
d3d9_hooked
=
false
;
static
bool
dxgi_hooked
=
false
;
static
bool
gl_hooked
=
false
;
...
...
plugins/win-capture/inject-helper/inject-helper.c
浏览文件 @
0c1d121f
...
...
@@ -7,7 +7,6 @@
static
void
load_debug_privilege
(
void
)
{
const
DWORD
flags
=
TOKEN_ADJUST_PRIVILEGES
|
TOKEN_QUERY
;
bool
success
=
false
;
TOKEN_PRIVILEGES
tp
;
HANDLE
token
;
LUID
val
;
...
...
@@ -21,7 +20,7 @@ static void load_debug_privilege(void)
tp
.
Privileges
[
0
].
Luid
=
val
;
tp
.
Privileges
[
0
].
Attributes
=
SE_PRIVILEGE_ENABLED
;
success
=
!!
AdjustTokenPrivileges
(
token
,
false
,
&
tp
,
AdjustTokenPrivileges
(
token
,
false
,
&
tp
,
sizeof
(
tp
),
NULL
,
NULL
);
}
...
...
plugins/win-capture/monitor-capture.c
浏览文件 @
0c1d121f
...
...
@@ -229,11 +229,8 @@ static obs_properties_t *monitor_capture_properties(void *unused)
"monitor"
,
TEXT_MONITOR
,
OBS_COMBO_TYPE_LIST
,
OBS_COMBO_FORMAT_INT
);
obs_property_t
*
compatmode
=
obs_properties_add_bool
(
props
,
"compatibility"
,
TEXT_COMPATIBILITY
);
obs_property_t
*
capture_cursor
=
obs_properties_add_bool
(
props
,
"capture_cursor"
,
TEXT_CAPTURE_CURSOR
);
obs_properties_add_bool
(
props
,
"compatibility"
,
TEXT_COMPATIBILITY
);
obs_properties_add_bool
(
props
,
"capture_cursor"
,
TEXT_CAPTURE_CURSOR
);
EnumDisplayMonitors
(
NULL
,
NULL
,
enum_monitor_props
,
(
LPARAM
)
monitors
);
...
...
plugins/win-dshow/win-dshow.cpp
浏览文件 @
0c1d121f
...
...
@@ -1399,7 +1399,6 @@ static void UpdateVideoFormats(VideoDevice &device, VideoFormat format_,
static
bool
UpdateFPS
(
long
long
interval
,
obs_property_t
*
list
)
{
size_t
size
=
obs_property_list_item_count
(
list
);
bool
fps_found
=
false
;
DStr
name
;
for
(
size_t
i
=
0
;
i
<
size
;
i
++
)
{
...
...
@@ -1411,7 +1410,6 @@ static bool UpdateFPS(long long interval, obs_property_t *list)
return
false
;
dstr_cat
(
name
,
obs_property_list_item_name
(
list
,
i
));
fps_found
=
true
;
break
;
}
...
...
plugins/win-wasapi/win-wasapi.cpp
浏览文件 @
0c1d121f
...
...
@@ -494,8 +494,7 @@ static obs_properties_t *GetWASAPIProperties(bool input)
device
.
name
.
c_str
(),
device
.
id
.
c_str
());
}
obs_property_t
*
prop
;
prop
=
obs_properties_add_bool
(
props
,
OPT_USE_DEVICE_TIMING
,
obs_properties_add_bool
(
props
,
OPT_USE_DEVICE_TIMING
,
obs_module_text
(
"UseDeviceTiming"
));
return
props
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录