Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Obs Studio
提交
fd34f0b2
O
Obs Studio
项目概览
小白菜888
/
Obs Studio
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Obs Studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fd34f0b2
编写于
11月 28, 2020
作者:
G
gxalpha
提交者:
Jim
12月 03, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mac-virtualcam: Fix remaining global namespaces
Gives the MachServer a unique name which was forgotten in a previous commit
上级
7a17f47d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
9 deletion
+9
-9
plugins/mac-virtualcam/src/obs-plugin/CMakeLists.txt
plugins/mac-virtualcam/src/obs-plugin/CMakeLists.txt
+2
-2
plugins/mac-virtualcam/src/obs-plugin/OBSDALMachServer.h
plugins/mac-virtualcam/src/obs-plugin/OBSDALMachServer.h
+1
-1
plugins/mac-virtualcam/src/obs-plugin/OBSDALMachServer.mm
plugins/mac-virtualcam/src/obs-plugin/OBSDALMachServer.mm
+3
-3
plugins/mac-virtualcam/src/obs-plugin/plugin-main.mm
plugins/mac-virtualcam/src/obs-plugin/plugin-main.mm
+3
-3
未找到文件。
plugins/mac-virtualcam/src/obs-plugin/CMakeLists.txt
浏览文件 @
fd34f0b2
...
@@ -25,12 +25,12 @@ include_directories(${AVFOUNDATION}
...
@@ -25,12 +25,12 @@ include_directories(${AVFOUNDATION}
set
(
mac-virtualcam_HEADERS
set
(
mac-virtualcam_HEADERS
Defines.h
Defines.h
MachServer.h
OBSDAL
MachServer.h
../common/MachProtocol.h
)
../common/MachProtocol.h
)
set
(
mac-virtualcam_SOURCES
set
(
mac-virtualcam_SOURCES
plugin-main.mm
plugin-main.mm
MachServer.mm
)
OBSDAL
MachServer.mm
)
add_library
(
mac-virtualcam MODULE
add_library
(
mac-virtualcam MODULE
${
mac-virtualcam_SOURCES
}
${
mac-virtualcam_SOURCES
}
...
...
plugins/mac-virtualcam/src/obs-plugin/MachServer.h
→
plugins/mac-virtualcam/src/obs-plugin/
OBSDAL
MachServer.h
浏览文件 @
fd34f0b2
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
MachServer
:
NSObject
@interface
OBSDAL
MachServer
:
NSObject
-
(
void
)
run
;
-
(
void
)
run
;
...
...
plugins/mac-virtualcam/src/obs-plugin/MachServer.mm
→
plugins/mac-virtualcam/src/obs-plugin/
OBSDAL
MachServer.mm
浏览文件 @
fd34f0b2
...
@@ -5,19 +5,19 @@
...
@@ -5,19 +5,19 @@
// Created by John Boiles on 5/5/20.
// Created by John Boiles on 5/5/20.
//
//
#import "MachServer.h"
#import "
OBSDAL
MachServer.h"
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#include <obs-module.h>
#include <obs-module.h>
#include "MachProtocol.h"
#include "MachProtocol.h"
#include "Defines.h"
#include "Defines.h"
@interface
MachServer
()
<
NSPortDelegate
>
@interface
OBSDAL
MachServer
()
<
NSPortDelegate
>
@property
NSPort
*
port
;
@property
NSPort
*
port
;
@property
NSMutableSet
*
clientPorts
;
@property
NSMutableSet
*
clientPorts
;
@property
NSRunLoop
*
runLoop
;
@property
NSRunLoop
*
runLoop
;
@end
@end
@implementation
MachServer
@implementation
OBSDAL
MachServer
-
(
id
)
init
-
(
id
)
init
{
{
...
...
plugins/mac-virtualcam/src/obs-plugin/plugin-main.mm
浏览文件 @
fd34f0b2
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#include <obs.h>
#include <obs.h>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CoreFoundation.h>
#include <AppKit/AppKit.h>
#include <AppKit/AppKit.h>
#include "MachServer.h"
#include "
OBSDAL
MachServer.h"
#include "Defines.h"
#include "Defines.h"
OBS_DECLARE_MODULE
()
OBS_DECLARE_MODULE
()
...
@@ -19,7 +19,7 @@ MODULE_EXPORT const char *obs_module_description(void)
...
@@ -19,7 +19,7 @@ MODULE_EXPORT const char *obs_module_description(void)
obs_output_t
*
outputRef
;
obs_output_t
*
outputRef
;
obs_video_info
videoInfo
;
obs_video_info
videoInfo
;
static
MachServer
*
sMachServer
;
static
OBSDAL
MachServer
*
sMachServer
;
static
bool
check_dal_plugin
()
static
bool
check_dal_plugin
()
{
{
...
@@ -120,7 +120,7 @@ static void *virtualcam_output_create(obs_data_t *settings,
...
@@ -120,7 +120,7 @@ static void *virtualcam_output_create(obs_data_t *settings,
outputRef
=
output
;
outputRef
=
output
;
blog
(
LOG_DEBUG
,
"output_create"
);
blog
(
LOG_DEBUG
,
"output_create"
);
sMachServer
=
[[
MachServer
alloc
]
init
];
sMachServer
=
[[
OBSDAL
MachServer
alloc
]
init
];
return
data
;
return
data
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录