(API Change) Unsquish libobs API callback names

Renamed:                    To:
-------------------------------------------------------
obs_source_info::getname    obs_source_info::get_name
obs_source_info::getwidth   obs_source_info::get_width
obs_source_info::getheight  obs_source_info::get_height
obs_output_info::getname    obs_output_info::get_name
obs_encoder_info::getname   obs_encoder_info::get_name
obs_service_info::getname   obs_service_info::get_name
master
jp9000 2014-08-04 14:38:26 -07:00
parent a3682fc8fb
commit c83d05117f
33 changed files with 83 additions and 83 deletions

View File

@ -33,7 +33,7 @@ struct obs_encoder_info *find_encoder(const char *id)
const char *obs_encoder_get_display_name(const char *id) const char *obs_encoder_get_display_name(const char *id)
{ {
struct obs_encoder_info *ei = find_encoder(id); struct obs_encoder_info *ei = find_encoder(id);
return ei ? ei->getname() : NULL; return ei ? ei->get_name() : NULL;
} }
static bool init_encoder(struct obs_encoder *encoder, const char *name, static bool init_encoder(struct obs_encoder *encoder, const char *name,

View File

@ -104,7 +104,7 @@ struct obs_encoder_info {
* *
* @return Translated name of the encoder * @return Translated name of the encoder
*/ */
const char *(*getname)(void); const char *(*get_name)(void);
/** /**
* Creates the encoder with the specified settings * Creates the encoder with the specified settings

View File

@ -450,15 +450,15 @@ void obs_register_source_s(const struct obs_source_info *info, size_t size)
return; return;
} }
CHECK_REQUIRED_VAL(info, getname, obs_register_source); CHECK_REQUIRED_VAL(info, get_name, obs_register_source);
CHECK_REQUIRED_VAL(info, create, obs_register_source); CHECK_REQUIRED_VAL(info, create, obs_register_source);
CHECK_REQUIRED_VAL(info, destroy, obs_register_source); CHECK_REQUIRED_VAL(info, destroy, obs_register_source);
if (info->type == OBS_SOURCE_TYPE_INPUT && if (info->type == OBS_SOURCE_TYPE_INPUT &&
(info->output_flags & OBS_SOURCE_VIDEO) != 0 && (info->output_flags & OBS_SOURCE_VIDEO) != 0 &&
(info->output_flags & OBS_SOURCE_ASYNC) == 0) { (info->output_flags & OBS_SOURCE_ASYNC) == 0) {
CHECK_REQUIRED_VAL(info, getwidth, obs_register_source); CHECK_REQUIRED_VAL(info, get_width, obs_register_source);
CHECK_REQUIRED_VAL(info, getheight, obs_register_source); CHECK_REQUIRED_VAL(info, get_height, obs_register_source);
} }
memcpy(&data, info, size); memcpy(&data, info, size);
@ -474,7 +474,7 @@ void obs_register_output_s(const struct obs_output_info *info, size_t size)
return; return;
} }
CHECK_REQUIRED_VAL(info, getname, obs_register_output); CHECK_REQUIRED_VAL(info, get_name, obs_register_output);
CHECK_REQUIRED_VAL(info, create, obs_register_output); CHECK_REQUIRED_VAL(info, create, obs_register_output);
CHECK_REQUIRED_VAL(info, destroy, obs_register_output); CHECK_REQUIRED_VAL(info, destroy, obs_register_output);
CHECK_REQUIRED_VAL(info, start, obs_register_output); CHECK_REQUIRED_VAL(info, start, obs_register_output);
@ -503,7 +503,7 @@ void obs_register_encoder_s(const struct obs_encoder_info *info, size_t size)
return; return;
} }
CHECK_REQUIRED_VAL(info, getname, obs_register_encoder); CHECK_REQUIRED_VAL(info, get_name, obs_register_encoder);
CHECK_REQUIRED_VAL(info, create, obs_register_encoder); CHECK_REQUIRED_VAL(info, create, obs_register_encoder);
CHECK_REQUIRED_VAL(info, destroy, obs_register_encoder); CHECK_REQUIRED_VAL(info, destroy, obs_register_encoder);
CHECK_REQUIRED_VAL(info, encode, obs_register_encoder); CHECK_REQUIRED_VAL(info, encode, obs_register_encoder);
@ -522,7 +522,7 @@ void obs_register_service_s(const struct obs_service_info *info, size_t size)
return; return;
} }
CHECK_REQUIRED_VAL(info, getname, obs_register_service); CHECK_REQUIRED_VAL(info, get_name, obs_register_service);
CHECK_REQUIRED_VAL(info, create, obs_register_service); CHECK_REQUIRED_VAL(info, create, obs_register_service);
CHECK_REQUIRED_VAL(info, destroy, obs_register_service); CHECK_REQUIRED_VAL(info, destroy, obs_register_service);

View File

@ -34,7 +34,7 @@ const struct obs_output_info *find_output(const char *id)
const char *obs_output_get_display_name(const char *id) const char *obs_output_get_display_name(const char *id)
{ {
const struct obs_output_info *info = find_output(id); const struct obs_output_info *info = find_output(id);
return (info != NULL) ? info->getname() : NULL; return (info != NULL) ? info->get_name() : NULL;
} }
static const char *output_signals[] = { static const char *output_signals[] = {

View File

@ -31,7 +31,7 @@ struct obs_output_info {
uint32_t flags; uint32_t flags;
const char *(*getname)(void); const char *(*get_name)(void);
void *(*create)(obs_data_t settings, obs_output_t output); void *(*create)(obs_data_t settings, obs_output_t output);
void (*destroy)(void *data); void (*destroy)(void *data);

View File

@ -441,12 +441,12 @@ const struct obs_source_info scene_info =
.id = "scene", .id = "scene",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW, .output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW,
.getname = scene_getname, .get_name = scene_getname,
.create = scene_create, .create = scene_create,
.destroy = scene_destroy, .destroy = scene_destroy,
.video_render = scene_video_render, .video_render = scene_video_render,
.getwidth = scene_getwidth, .get_width = scene_getwidth,
.getheight = scene_getheight, .get_height = scene_getheight,
.load = scene_load, .load = scene_load,
.save = scene_save, .save = scene_save,
.enum_sources = scene_enum_sources .enum_sources = scene_enum_sources

View File

@ -30,7 +30,7 @@ const struct obs_service_info *find_service(const char *id)
const char *obs_service_get_display_name(const char *id) const char *obs_service_get_display_name(const char *id)
{ {
const struct obs_service_info *info = find_service(id); const struct obs_service_info *info = find_service(id);
return (info != NULL) ? info->getname() : NULL; return (info != NULL) ? info->get_name() : NULL;
} }
obs_service_t obs_service_create(const char *id, const char *name, obs_service_t obs_service_create(const char *id, const char *name,

View File

@ -21,7 +21,7 @@ struct obs_service_info {
/* required */ /* required */
const char *id; const char *id;
const char *(*getname)(void); const char *(*get_name)(void);
void *(*create)(obs_data_t settings, obs_service_t service); void *(*create)(obs_data_t settings, obs_service_t service);
void (*destroy)(void *data); void (*destroy)(void *data);

View File

@ -99,7 +99,7 @@ const char *obs_source_get_display_name(enum obs_source_type type,
const char *id) const char *id)
{ {
const struct obs_source_info *info = get_source_info(type, id); const struct obs_source_info *info = get_source_info(type, id);
return (info != NULL) ? info->getname() : NULL; return (info != NULL) ? info->get_name() : NULL;
} }
/* internal initialization */ /* internal initialization */
@ -1115,8 +1115,8 @@ uint32_t obs_source_get_width(obs_source_t source)
{ {
if (!source_valid(source)) return 0; if (!source_valid(source)) return 0;
if (source->info.getwidth) if (source->info.get_width)
return source->info.getwidth(source->context.data); return source->info.get_width(source->context.data);
return source->async_width; return source->async_width;
} }
@ -1124,8 +1124,8 @@ uint32_t obs_source_get_height(obs_source_t source)
{ {
if (!source_valid(source)) return 0; if (!source_valid(source)) return 0;
if (source->info.getheight) if (source->info.get_height)
return source->info.getheight(source->context.data); return source->info.get_height(source->context.data);
return source->async_height; return source->async_height;
} }

View File

@ -120,7 +120,7 @@ struct obs_source_info {
* *
* @return The translated name of the source type * @return The translated name of the source type
*/ */
const char *(*getname)(void); const char *(*get_name)(void);
/** /**
* Creates the source data for the source * Creates the source data for the source
@ -141,11 +141,11 @@ struct obs_source_info {
/** Returns the width of the source. Required if this is an input /** Returns the width of the source. Required if this is an input
* source and has non-async video */ * source and has non-async video */
uint32_t (*getwidth)(void *data); uint32_t (*get_width)(void *data);
/** Returns the height of the source. Required if this is an input /** Returns the height of the source. Required if this is an input
* source and has non-async video */ * source and has non-async video */
uint32_t (*getheight)(void *data); uint32_t (*get_height)(void *data);
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
/* Optional implementation */ /* Optional implementation */

View File

@ -110,12 +110,12 @@ static struct obs_source_info image_source_info = {
.id = "image_source", .id = "image_source",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_VIDEO, .output_flags = OBS_SOURCE_VIDEO,
.getname = image_source_get_name, .get_name = image_source_get_name,
.create = image_source_create, .create = image_source_create,
.destroy = image_source_destroy, .destroy = image_source_destroy,
.update = image_source_update, .update = image_source_update,
.getwidth = image_source_getwidth, .get_width = image_source_getwidth,
.getheight = image_source_getheight, .get_height = image_source_getheight,
.video_render = image_source_render, .video_render = image_source_render,
.properties = image_source_properties .properties = image_source_properties
}; };

View File

@ -445,7 +445,7 @@ struct obs_source_info pulse_input_capture = {
.id = "pulse_input_capture", .id = "pulse_input_capture",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_AUDIO, .output_flags = OBS_SOURCE_AUDIO,
.getname = pulse_input_getname, .get_name = pulse_input_getname,
.create = pulse_create, .create = pulse_create,
.destroy = pulse_destroy, .destroy = pulse_destroy,
.update = pulse_update, .update = pulse_update,
@ -457,7 +457,7 @@ struct obs_source_info pulse_output_capture = {
.id = "pulse_output_capture", .id = "pulse_output_capture",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_AUDIO, .output_flags = OBS_SOURCE_AUDIO,
.getname = pulse_output_getname, .get_name = pulse_output_getname,
.create = pulse_create, .create = pulse_create,
.destroy = pulse_destroy, .destroy = pulse_destroy,
.update = pulse_update, .update = pulse_update,

View File

@ -852,7 +852,7 @@ struct obs_source_info v4l2_input = {
.id = "v4l2_input", .id = "v4l2_input",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_ASYNC_VIDEO, .output_flags = OBS_SOURCE_ASYNC_VIDEO,
.getname = v4l2_getname, .get_name = v4l2_getname,
.create = v4l2_create, .create = v4l2_create,
.destroy = v4l2_destroy, .destroy = v4l2_destroy,
.update = v4l2_update, .update = v4l2_update,

View File

@ -72,7 +72,7 @@ bool obs_module_load(void)
sinfo.id = "xcomposite_input"; sinfo.id = "xcomposite_input";
sinfo.output_flags = OBS_SOURCE_VIDEO; sinfo.output_flags = OBS_SOURCE_VIDEO;
sinfo.getname = xcompcap_getname; sinfo.get_name = xcompcap_getname;
sinfo.create = xcompcap_create; sinfo.create = xcompcap_create;
sinfo.destroy = xcompcap_destroy; sinfo.destroy = xcompcap_destroy;
sinfo.properties = xcompcap_props; sinfo.properties = xcompcap_props;
@ -80,8 +80,8 @@ bool obs_module_load(void)
sinfo.update = xcompcap_update; sinfo.update = xcompcap_update;
sinfo.video_tick = xcompcap_video_tick; sinfo.video_tick = xcompcap_video_tick;
sinfo.video_render = xcompcap_video_render; sinfo.video_render = xcompcap_video_render;
sinfo.getwidth = xcompcap_getwidth; sinfo.get_width = xcompcap_getwidth;
sinfo.getheight = xcompcap_getheight; sinfo.get_height = xcompcap_getheight;
obs_register_source(&sinfo); obs_register_source(&sinfo);

View File

@ -301,7 +301,7 @@ struct obs_source_info xshm_input = {
.id = "xshm_input", .id = "xshm_input",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_VIDEO, .output_flags = OBS_SOURCE_VIDEO,
.getname = xshm_getname, .get_name = xshm_getname,
.create = xshm_create, .create = xshm_create,
.destroy = xshm_destroy, .destroy = xshm_destroy,
.update = xshm_update, .update = xshm_update,
@ -309,6 +309,6 @@ struct obs_source_info xshm_input = {
.properties = xshm_properties, .properties = xshm_properties,
.video_tick = xshm_video_tick, .video_tick = xshm_video_tick,
.video_render = xshm_video_render, .video_render = xshm_video_render,
.getwidth = xshm_getwidth, .get_width = xshm_getwidth,
.getheight = xshm_getheight .get_height = xshm_getheight
}; };

View File

@ -837,7 +837,7 @@ struct obs_source_info av_capture_info = {
.id = "av_capture_input", .id = "av_capture_input",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_ASYNC_VIDEO, .output_flags = OBS_SOURCE_ASYNC_VIDEO,
.getname = av_capture_getname, .get_name = av_capture_getname,
.create = av_capture_create, .create = av_capture_create,
.destroy = av_capture_destroy, .destroy = av_capture_destroy,
.defaults = av_capture_defaults, .defaults = av_capture_defaults,

View File

@ -746,7 +746,7 @@ struct obs_source_info coreaudio_input_capture_info = {
.id = "coreaudio_input_capture", .id = "coreaudio_input_capture",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_AUDIO, .output_flags = OBS_SOURCE_AUDIO,
.getname = coreaudio_input_getname, .get_name = coreaudio_input_getname,
.create = coreaudio_create_input_capture, .create = coreaudio_create_input_capture,
.destroy = coreaudio_destroy, .destroy = coreaudio_destroy,
.defaults = coreaudio_defaults, .defaults = coreaudio_defaults,
@ -757,7 +757,7 @@ struct obs_source_info coreaudio_output_capture_info = {
.id = "coreaudio_output_capture", .id = "coreaudio_output_capture",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_AUDIO, .output_flags = OBS_SOURCE_AUDIO,
.getname = coreaudio_output_getname, .get_name = coreaudio_output_getname,
.create = coreaudio_create_output_capture, .create = coreaudio_create_output_capture,
.destroy = coreaudio_destroy, .destroy = coreaudio_destroy,
.defaults = coreaudio_defaults, .defaults = coreaudio_defaults,

View File

@ -322,7 +322,7 @@ static obs_properties_t display_capture_properties(void)
struct obs_source_info display_capture_info = { struct obs_source_info display_capture_info = {
.id = "display_capture", .id = "display_capture",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.getname = display_capture_getname, .get_name = display_capture_getname,
.create = display_capture_create, .create = display_capture_create,
.destroy = display_capture_destroy, .destroy = display_capture_destroy,
@ -331,8 +331,8 @@ struct obs_source_info display_capture_info = {
.video_tick = display_capture_video_tick, .video_tick = display_capture_video_tick,
.video_render = display_capture_video_render, .video_render = display_capture_video_render,
.getwidth = display_capture_getwidth, .get_width = display_capture_getwidth,
.getheight = display_capture_getheight, .get_height = display_capture_getheight,
.defaults = display_capture_defaults, .defaults = display_capture_defaults,
.properties = display_capture_properties, .properties = display_capture_properties,

View File

@ -277,7 +277,7 @@ struct obs_encoder_info aac_encoder_info = {
.id = "ffmpeg_aac", .id = "ffmpeg_aac",
.type = OBS_ENCODER_AUDIO, .type = OBS_ENCODER_AUDIO,
.codec = "AAC", .codec = "AAC",
.getname = aac_getname, .get_name = aac_getname,
.create = aac_create, .create = aac_create,
.destroy = aac_destroy, .destroy = aac_destroy,
.encode = aac_encode, .encode = aac_encode,

View File

@ -807,7 +807,7 @@ static void ffmpeg_output_stop(void *data)
struct obs_output_info ffmpeg_output = { struct obs_output_info ffmpeg_output = {
.id = "ffmpeg_output", .id = "ffmpeg_output",
.flags = OBS_OUTPUT_AUDIO | OBS_OUTPUT_VIDEO, .flags = OBS_OUTPUT_AUDIO | OBS_OUTPUT_VIDEO,
.getname = ffmpeg_output_getname, .get_name = ffmpeg_output_getname,
.create = ffmpeg_output_create, .create = ffmpeg_output_create,
.destroy = ffmpeg_output_destroy, .destroy = ffmpeg_output_destroy,
.start = ffmpeg_output_start, .start = ffmpeg_output_start,

View File

@ -292,7 +292,7 @@ struct obs_encoder_info obs_libfdk_encoder = {
.id = "libfdk_aac", .id = "libfdk_aac",
.type = OBS_ENCODER_AUDIO, .type = OBS_ENCODER_AUDIO,
.codec = "AAC", .codec = "AAC",
.getname = libfdk_getname, .get_name = libfdk_getname,
.create = libfdk_create, .create = libfdk_create,
.destroy = libfdk_destroy, .destroy = libfdk_destroy,
.encode = libfdk_encode, .encode = libfdk_encode,

View File

@ -201,7 +201,7 @@ static obs_properties_t flv_output_properties(void)
struct obs_output_info flv_output_info = { struct obs_output_info flv_output_info = {
.id = "flv_output", .id = "flv_output",
.flags = OBS_OUTPUT_AV | OBS_OUTPUT_ENCODED, .flags = OBS_OUTPUT_AV | OBS_OUTPUT_ENCODED,
.getname = flv_output_getname, .get_name = flv_output_getname,
.create = flv_output_create, .create = flv_output_create,
.destroy = flv_output_destroy, .destroy = flv_output_destroy,
.start = flv_output_start, .start = flv_output_start,

View File

@ -592,7 +592,7 @@ struct obs_output_info rtmp_output_info = {
.flags = OBS_OUTPUT_AV | .flags = OBS_OUTPUT_AV |
OBS_OUTPUT_ENCODED | OBS_OUTPUT_ENCODED |
OBS_OUTPUT_SERVICE, OBS_OUTPUT_SERVICE,
.getname = rtmp_stream_getname, .get_name = rtmp_stream_getname,
.create = rtmp_stream_create, .create = rtmp_stream_create,
.destroy = rtmp_stream_destroy, .destroy = rtmp_stream_destroy,
.start = rtmp_stream_start, .start = rtmp_stream_start,

View File

@ -514,7 +514,7 @@ struct obs_encoder_info obs_x264_encoder = {
.id = "obs_x264", .id = "obs_x264",
.type = OBS_ENCODER_VIDEO, .type = OBS_ENCODER_VIDEO,
.codec = "h264", .codec = "h264",
.getname = obs_x264_getname, .get_name = obs_x264_getname,
.create = obs_x264_create, .create = obs_x264_create,
.destroy = obs_x264_destroy, .destroy = obs_x264_destroy,
.encode = obs_x264_encode, .encode = obs_x264_encode,

View File

@ -332,7 +332,7 @@ static const char *rtmp_common_key(void *data)
struct obs_service_info rtmp_common_service = { struct obs_service_info rtmp_common_service = {
.id = "rtmp_common", .id = "rtmp_common",
.getname = rtmp_common_getname, .get_name = rtmp_common_getname,
.create = rtmp_common_create, .create = rtmp_common_create,
.destroy = rtmp_common_destroy, .destroy = rtmp_common_destroy,
.update = rtmp_common_update, .update = rtmp_common_update,

View File

@ -63,7 +63,7 @@ static const char *rtmp_custom_key(void *data)
struct obs_service_info rtmp_custom_service = { struct obs_service_info rtmp_custom_service = {
.id = "rtmp_custom", .id = "rtmp_custom",
.getname = rtmp_custom_name, .get_name = rtmp_custom_name,
.create = rtmp_custom_create, .create = rtmp_custom_create,
.destroy = rtmp_custom_destroy, .destroy = rtmp_custom_destroy,
.update = rtmp_custom_update, .update = rtmp_custom_update,

View File

@ -161,11 +161,11 @@ struct obs_source_info monitor_capture_info = {
.id = "monitor_capture", .id = "monitor_capture",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW, .output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW,
.getname = monitor_capture_getname, .get_name = monitor_capture_getname,
.create = monitor_capture_create, .create = monitor_capture_create,
.destroy = monitor_capture_destroy, .destroy = monitor_capture_destroy,
.getwidth = monitor_capture_width, .get_width = monitor_capture_width,
.getheight = monitor_capture_height, .get_height = monitor_capture_height,
.defaults = monitor_capture_defaults, .defaults = monitor_capture_defaults,
.video_render = monitor_capture_render, .video_render = monitor_capture_render,
.video_tick = monitor_capture_tick .video_tick = monitor_capture_tick

View File

@ -453,12 +453,12 @@ struct obs_source_info window_capture_info = {
.id = "window_capture", .id = "window_capture",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW, .output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW,
.getname = wc_getname, .get_name = wc_getname,
.create = wc_create, .create = wc_create,
.destroy = wc_destroy, .destroy = wc_destroy,
.update = wc_update, .update = wc_update,
.getwidth = wc_width, .get_width = wc_width,
.getheight = wc_height, .get_height = wc_height,
.defaults = wc_defaults, .defaults = wc_defaults,
.properties = wc_properties, .properties = wc_properties,
.video_render = wc_render, .video_render = wc_render,

View File

@ -1198,11 +1198,11 @@ bool obs_module_load(void)
info.type = OBS_SOURCE_TYPE_INPUT; info.type = OBS_SOURCE_TYPE_INPUT;
info.output_flags = OBS_SOURCE_VIDEO | info.output_flags = OBS_SOURCE_VIDEO |
OBS_SOURCE_ASYNC; OBS_SOURCE_ASYNC;
info.getname = GetDShowInputName; info.get_name = GetDShowInputName;
info.create = CreateDShowInput; info.create = CreateDShowInput;
info.destroy = DestroyDShowInput; info.destroy = DestroyDShowInput;
info.getwidth = GetDShowWidth; info.get_width = GetDShowWidth;
info.getheight = GetDShowHeight; info.get_height = GetDShowHeight;
info.update = UpdateDShowInput; info.update = UpdateDShowInput;
info.defaults = GetDShowDefaults; info.defaults = GetDShowDefaults;
info.properties = GetDShowProperties; info.properties = GetDShowProperties;

View File

@ -512,7 +512,7 @@ void RegisterWASAPIInput()
info.id = "wasapi_input_capture"; info.id = "wasapi_input_capture";
info.type = OBS_SOURCE_TYPE_INPUT; info.type = OBS_SOURCE_TYPE_INPUT;
info.output_flags = OBS_SOURCE_AUDIO; info.output_flags = OBS_SOURCE_AUDIO;
info.getname = GetWASAPIInputName; info.get_name = GetWASAPIInputName;
info.create = CreateWASAPIInput; info.create = CreateWASAPIInput;
info.destroy = DestroyWASAPISource; info.destroy = DestroyWASAPISource;
info.update = UpdateWASAPISource; info.update = UpdateWASAPISource;
@ -527,7 +527,7 @@ void RegisterWASAPIOutput()
info.id = "wasapi_output_capture"; info.id = "wasapi_output_capture";
info.type = OBS_SOURCE_TYPE_INPUT; info.type = OBS_SOURCE_TYPE_INPUT;
info.output_flags = OBS_SOURCE_AUDIO; info.output_flags = OBS_SOURCE_AUDIO;
info.getname = GetWASAPIOutputName; info.get_name = GetWASAPIOutputName;
info.create = CreateWASAPIOutput; info.create = CreateWASAPIOutput;
info.destroy = DestroyWASAPISource; info.destroy = DestroyWASAPISource;
info.update = UpdateWASAPISource; info.update = UpdateWASAPISource;

View File

@ -60,7 +60,7 @@ struct obs_source_info test_filter = {
.id = "test_filter", .id = "test_filter",
.type = OBS_SOURCE_TYPE_FILTER, .type = OBS_SOURCE_TYPE_FILTER,
.output_flags = OBS_SOURCE_VIDEO, .output_flags = OBS_SOURCE_VIDEO,
.getname = filter_getname, .get_name = filter_getname,
.create = filter_create, .create = filter_create,
.destroy = filter_destroy, .destroy = filter_destroy,
.video_render = filter_render .video_render = filter_render

View File

@ -100,7 +100,7 @@ struct obs_source_info test_random = {
.id = "random", .id = "random",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_ASYNC_VIDEO, .output_flags = OBS_SOURCE_ASYNC_VIDEO,
.getname = random_getname, .get_name = random_getname,
.create = random_create, .create = random_create,
.destroy = random_destroy, .destroy = random_destroy,
}; };

View File

@ -104,7 +104,7 @@ struct obs_source_info test_sinewave = {
.id = "test_sinewave", .id = "test_sinewave",
.type = OBS_SOURCE_TYPE_INPUT, .type = OBS_SOURCE_TYPE_INPUT,
.output_flags = OBS_SOURCE_AUDIO, .output_flags = OBS_SOURCE_AUDIO,
.getname = sinewave_getname, .get_name = sinewave_getname,
.create = sinewave_create, .create = sinewave_create,
.destroy = sinewave_destroy, .destroy = sinewave_destroy,
}; };