Browse Source

Remove 'locale' parameter from all callbacks

The locale parameter was a mistake, because it puts extra needless
burden upon the module developer to have to handle this variable for
each and every single callback function.  The parameter is being removed
in favor of a single centralized module callback function that
specifically updates locale information for a module only when needed.
jp9000 11 years ago
parent
commit
0b4a259e56
38 changed files with 125 additions and 160 deletions
  1. 6 7
      libobs/obs-encoder.c
  2. 2 4
      libobs/obs-encoder.h
  3. 6 6
      libobs/obs-output.c
  4. 2 2
      libobs/obs-output.h
  5. 1 2
      libobs/obs-scene.c
  6. 6 7
      libobs/obs-service.c
  7. 2 2
      libobs/obs-service.h
  8. 6 7
      libobs/obs-source.c
  9. 2 4
      libobs/obs-source.h
  10. 12 22
      libobs/obs.h
  11. 2 3
      obs/window-basic-main.cpp
  12. 2 2
      obs/window-basic-properties.cpp
  13. 4 6
      obs/window-basic-settings.cpp
  14. 1 2
      obs/window-basic-source-select.cpp
  15. 9 9
      plugins/linux-pulseaudio/pulse-input.c
  16. 4 3
      plugins/linux-v4l2/v4l2-input.c
  17. 4 5
      plugins/linux-xcomposite/plugin-main.cpp
  18. 1 1
      plugins/linux-xcomposite/xcompcap-main.cpp
  19. 1 1
      plugins/linux-xcomposite/xcompcap-main.h
  20. 4 3
      plugins/linux-xshm/xshm-input.c
  21. 2 3
      plugins/mac-avcapture/av-capture.m
  22. 7 9
      plugins/mac-capture/mac-audio.c
  23. 3 3
      plugins/obs-ffmpeg/obs-ffmpeg-aac.c
  24. 2 2
      plugins/obs-ffmpeg/obs-ffmpeg-output.c
  25. 3 3
      plugins/obs-libfdk/obs-libfdk.c
  26. 3 3
      plugins/obs-outputs/flv-output.c
  27. 2 3
      plugins/obs-outputs/rtmp-stream.c
  28. 2 3
      plugins/obs-x264/obs-x264.c
  29. 2 4
      plugins/rtmp-services/rtmp-common.c
  30. 2 4
      plugins/rtmp-services/rtmp-custom.c
  31. 2 2
      plugins/win-capture/monitor-capture.c
  32. 2 3
      plugins/win-capture/window-capture.c
  33. 3 3
      plugins/win-dshow/win-dshow.cpp
  34. 7 7
      plugins/win-wasapi/win-wasapi.cpp
  35. 3 4
      test/test-input/test-desktop.m
  36. 1 2
      test/test-input/test-filter.c
  37. 1 2
      test/test-input/test-random.c
  38. 1 2
      test/test-input/test-sinewave.c

+ 6 - 7
libobs/obs-encoder.c

@@ -30,10 +30,10 @@ static inline struct obs_encoder_info *get_encoder_info(const char *id)
 	return NULL;
 	return NULL;
 }
 }
 
 
-const char *obs_encoder_getdisplayname(const char *id, const char *locale)
+const char *obs_encoder_getdisplayname(const char *id)
 {
 {
 	struct obs_encoder_info *ei = get_encoder_info(id);
 	struct obs_encoder_info *ei = get_encoder_info(id);
-	return ei ? ei->getname(locale) : NULL;
+	return ei ? ei->getname() : NULL;
 }
 }
 
 
 static bool init_encoder(struct obs_encoder *encoder, const char *name,
 static bool init_encoder(struct obs_encoder *encoder, const char *name,
@@ -227,14 +227,14 @@ obs_data_t obs_encoder_defaults(const char *id)
 	return (info) ? get_defaults(info) : NULL;
 	return (info) ? get_defaults(info) : NULL;
 }
 }
 
 
-obs_properties_t obs_get_encoder_properties(const char *id, const char *locale)
+obs_properties_t obs_get_encoder_properties(const char *id)
 {
 {
 	const struct obs_encoder_info *ei = get_encoder_info(id);
 	const struct obs_encoder_info *ei = get_encoder_info(id);
 	if (ei && ei->properties) {
 	if (ei && ei->properties) {
 		obs_data_t       defaults = get_defaults(ei);
 		obs_data_t       defaults = get_defaults(ei);
 		obs_properties_t properties;
 		obs_properties_t properties;
 
 
-		properties = ei->properties(locale);
+		properties = ei->properties();
 		obs_properties_apply_settings(properties, defaults);
 		obs_properties_apply_settings(properties, defaults);
 		obs_data_release(defaults);
 		obs_data_release(defaults);
 		return properties;
 		return properties;
@@ -242,12 +242,11 @@ obs_properties_t obs_get_encoder_properties(const char *id, const char *locale)
 	return NULL;
 	return NULL;
 }
 }
 
 
-obs_properties_t obs_encoder_properties(obs_encoder_t encoder,
-		const char *locale)
+obs_properties_t obs_encoder_properties(obs_encoder_t encoder)
 {
 {
 	if (encoder && encoder->info.properties) {
 	if (encoder && encoder->info.properties) {
 		obs_properties_t props;
 		obs_properties_t props;
-		props = encoder->info.properties(locale);
+		props = encoder->info.properties();
 		obs_properties_apply_settings(props, encoder->context.settings);
 		obs_properties_apply_settings(props, encoder->context.settings);
 		return props;
 		return props;
 	}
 	}

+ 2 - 4
libobs/obs-encoder.h

@@ -102,10 +102,9 @@ struct obs_encoder_info {
 	/**
 	/**
 	 * Gets the full translated name of this encoder
 	 * Gets the full translated name of this encoder
 	 *
 	 *
-	 * @param  locale  Locale to use for translation
 	 * @return         Translated name of the encoder
 	 * @return         Translated name of the encoder
 	 */
 	 */
-	const char *(*getname)(const char *locale);
+	const char *(*getname)(void);
 
 
 	/**
 	/**
 	 * Creates the encoder with the specified settings
 	 * Creates the encoder with the specified settings
@@ -155,10 +154,9 @@ struct obs_encoder_info {
 	/** 
 	/** 
 	 * Gets the property information of this encoder
 	 * Gets the property information of this encoder
 	 *
 	 *
-	 * @param  locale  The locale to translate with
 	 * @return         The properties data
 	 * @return         The properties data
 	 */
 	 */
-	obs_properties_t (*properties)(const char *locale);
+	obs_properties_t (*properties)(void);
 
 
 	/**
 	/**
 	 * Updates the settings for this encoder (usually used for things like
 	 * Updates the settings for this encoder (usually used for things like

+ 6 - 6
libobs/obs-output.c

@@ -30,10 +30,10 @@ static inline const struct obs_output_info *find_output(const char *id)
 	return NULL;
 	return NULL;
 }
 }
 
 
-const char *obs_output_getdisplayname(const char *id, const char *locale)
+const char *obs_output_getdisplayname(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(locale) : NULL;
+	return (info != NULL) ? info->getname() : NULL;
 }
 }
 
 
 static const char *output_signals[] = {
 static const char *output_signals[] = {
@@ -166,14 +166,14 @@ obs_data_t obs_output_defaults(const char *id)
 	return (info) ? get_defaults(info) : NULL;
 	return (info) ? get_defaults(info) : NULL;
 }
 }
 
 
-obs_properties_t obs_get_output_properties(const char *id, const char *locale)
+obs_properties_t obs_get_output_properties(const char *id)
 {
 {
 	const struct obs_output_info *info = find_output(id);
 	const struct obs_output_info *info = find_output(id);
 	if (info && info->properties) {
 	if (info && info->properties) {
 		obs_data_t       defaults = get_defaults(info);
 		obs_data_t       defaults = get_defaults(info);
 		obs_properties_t properties;
 		obs_properties_t properties;
 
 
-		properties = info->properties(locale);
+		properties = info->properties();
 		obs_properties_apply_settings(properties, defaults);
 		obs_properties_apply_settings(properties, defaults);
 		obs_data_release(defaults);
 		obs_data_release(defaults);
 		return properties;
 		return properties;
@@ -181,11 +181,11 @@ obs_properties_t obs_get_output_properties(const char *id, const char *locale)
 	return NULL;
 	return NULL;
 }
 }
 
 
-obs_properties_t obs_output_properties(obs_output_t output, const char *locale)
+obs_properties_t obs_output_properties(obs_output_t output)
 {
 {
 	if (output && output->info.properties) {
 	if (output && output->info.properties) {
 		obs_properties_t props;
 		obs_properties_t props;
-		props = output->info.properties(locale);
+		props = output->info.properties();
 		obs_properties_apply_settings(props, output->context.settings);
 		obs_properties_apply_settings(props, output->context.settings);
 		return props;
 		return props;
 	}
 	}

+ 2 - 2
libobs/obs-output.h

@@ -31,7 +31,7 @@ struct obs_output_info {
 
 
 	uint32_t flags;
 	uint32_t flags;
 
 
-	const char *(*getname)(const char *locale);
+	const char *(*getname)(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);
@@ -49,7 +49,7 @@ struct obs_output_info {
 
 
 	void (*defaults)(obs_data_t settings);
 	void (*defaults)(obs_data_t settings);
 
 
-	obs_properties_t (*properties)(const char *locale);
+	obs_properties_t (*properties)(void);
 
 
 	void (*pause)(void *data);
 	void (*pause)(void *data);
 };
 };

+ 1 - 2
libobs/obs-scene.c

@@ -43,10 +43,9 @@ static inline void signal_item_remove(struct obs_scene_item *item)
 	calldata_free(&params);
 	calldata_free(&params);
 }
 }
 
 
-static const char *scene_getname(const char *locale)
+static const char *scene_getname(void)
 {
 {
 	/* TODO: locale */
 	/* TODO: locale */
-	UNUSED_PARAMETER(locale);
 	return "Scene";
 	return "Scene";
 }
 }
 
 

+ 6 - 7
libobs/obs-service.c

@@ -27,10 +27,10 @@ static inline const struct obs_service_info *find_service(const char *id)
 	return NULL;
 	return NULL;
 }
 }
 
 
-const char *obs_service_getdisplayname(const char *id, const char *locale)
+const char *obs_service_getdisplayname(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(locale) : NULL;
+	return (info != NULL) ? info->getname() : 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,
@@ -112,14 +112,14 @@ obs_data_t obs_service_defaults(const char *id)
 	return (info) ? get_defaults(info) : NULL;
 	return (info) ? get_defaults(info) : NULL;
 }
 }
 
 
-obs_properties_t obs_get_service_properties(const char *id, const char *locale)
+obs_properties_t obs_get_service_properties(const char *id)
 {
 {
 	const struct obs_service_info *info = find_service(id);
 	const struct obs_service_info *info = find_service(id);
 	if (info && info->properties) {
 	if (info && info->properties) {
 		obs_data_t       defaults = get_defaults(info);
 		obs_data_t       defaults = get_defaults(info);
 		obs_properties_t properties;
 		obs_properties_t properties;
 
 
-		properties = info->properties(locale);
+		properties = info->properties();
 		obs_properties_apply_settings(properties, defaults);
 		obs_properties_apply_settings(properties, defaults);
 		obs_data_release(defaults);
 		obs_data_release(defaults);
 		return properties;
 		return properties;
@@ -127,12 +127,11 @@ obs_properties_t obs_get_service_properties(const char *id, const char *locale)
 	return NULL;
 	return NULL;
 }
 }
 
 
-obs_properties_t obs_service_properties(obs_service_t service,
-		const char *locale)
+obs_properties_t obs_service_properties(obs_service_t service)
 {
 {
 	if (service && service->info.properties) {
 	if (service && service->info.properties) {
 		obs_properties_t props;
 		obs_properties_t props;
-		props = service->info.properties(locale);
+		props = service->info.properties();
 		obs_properties_apply_settings(props, service->context.settings);
 		obs_properties_apply_settings(props, service->context.settings);
 		return props;
 		return props;
 	}
 	}

+ 2 - 2
libobs/obs-service.h

@@ -21,7 +21,7 @@ struct obs_service_info {
 	/* required */
 	/* required */
 	const char *id;
 	const char *id;
 
 
-	const char *(*getname)(const char *locale);
+	const char *(*getname)(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);
 
 
@@ -33,7 +33,7 @@ struct obs_service_info {
 
 
 	void (*defaults)(obs_data_t settings);
 	void (*defaults)(obs_data_t settings);
 
 
-	obs_properties_t (*properties)(const char *locale);
+	obs_properties_t (*properties)(void);
 
 
 	/**
 	/**
 	 * Called when getting ready to start up an output, before the encoders
 	 * Called when getting ready to start up an output, before the encoders

+ 6 - 7
libobs/obs-source.c

@@ -95,11 +95,10 @@ bool obs_source_init_context(struct obs_source *source,
 			source_signals);
 			source_signals);
 }
 }
 
 
-const char *obs_source_getdisplayname(enum obs_source_type type,
-		const char *id, const char *locale)
+const char *obs_source_getdisplayname(enum obs_source_type type, 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(locale) : NULL;
+	return (info != NULL) ? info->getname() : NULL;
 }
 }
 
 
 /* internal initialization */
 /* internal initialization */
@@ -322,14 +321,14 @@ obs_data_t obs_source_settings(enum obs_source_type type, const char *id)
 }
 }
 
 
 obs_properties_t obs_get_source_properties(enum obs_source_type type,
 obs_properties_t obs_get_source_properties(enum obs_source_type type,
-		const char *id, const char *locale)
+		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);
 	if (info && info->properties) {
 	if (info && info->properties) {
 		obs_data_t       defaults = get_defaults(info);
 		obs_data_t       defaults = get_defaults(info);
 		obs_properties_t properties;
 		obs_properties_t properties;
 
 
-		properties = info->properties(locale);
+		properties = info->properties();
 		obs_properties_apply_settings(properties, defaults);
 		obs_properties_apply_settings(properties, defaults);
 		obs_data_release(defaults);
 		obs_data_release(defaults);
 		return properties;
 		return properties;
@@ -337,11 +336,11 @@ obs_properties_t obs_get_source_properties(enum obs_source_type type,
 	return NULL;
 	return NULL;
 }
 }
 
 
-obs_properties_t obs_source_properties(obs_source_t source, const char *locale)
+obs_properties_t obs_source_properties(obs_source_t source)
 {
 {
 	if (source_valid(source) && source->info.properties) {
 	if (source_valid(source) && source->info.properties) {
 		obs_properties_t props;
 		obs_properties_t props;
-		props = source->info.properties(locale);
+		props = source->info.properties();
 		obs_properties_apply_settings(props, source->context.settings);
 		obs_properties_apply_settings(props, source->context.settings);
 		return props;
 		return props;
 	}
 	}

+ 2 - 4
libobs/obs-source.h

@@ -118,10 +118,9 @@ struct obs_source_info {
 	/**
 	/**
 	 * Get the translated name of the source type
 	 * Get the translated name of the source type
 	 *
 	 *
-	 * @param  locale  The locale to translate with
 	 * @return         The translated name of the source type
 	 * @return         The translated name of the source type
 	 */
 	 */
-	const char *(*getname)(const char *locale);
+	const char *(*getname)(void);
 
 
 	/**
 	/**
 	 * Creates the source data for the source
 	 * Creates the source data for the source
@@ -161,10 +160,9 @@ struct obs_source_info {
 	/** 
 	/** 
 	 * Gets the property information of this source
 	 * Gets the property information of this source
 	 *
 	 *
-	 * @param  locale  The locale to translate with
 	 * @return         The properties data
 	 * @return         The properties data
 	 */
 	 */
-	obs_properties_t (*properties)(const char *locale);
+	obs_properties_t (*properties)(void);
 
 
 	/**
 	/**
 	 * Updates the settings for this source
 	 * Updates the settings for this source

+ 12 - 22
libobs/obs.h

@@ -477,7 +477,7 @@ EXPORT void obs_display_remove_draw_callback(obs_display_t display,
 
 
 /** Returns the translated display name of a source */
 /** Returns the translated display name of a source */
 EXPORT const char *obs_source_getdisplayname(enum obs_source_type type,
 EXPORT const char *obs_source_getdisplayname(enum obs_source_type type,
-		const char *id, const char *locale);
+		const char *id);
 
 
 /**
 /**
  * Creates a source of the specified type with the specified settings.
  * Creates a source of the specified type with the specified settings.
@@ -512,14 +512,13 @@ EXPORT obs_data_t obs_get_source_defaults(enum obs_source_type type,
 
 
 /** Returns the property list, if any.  Free with obs_properties_destroy */
 /** Returns the property list, if any.  Free with obs_properties_destroy */
 EXPORT obs_properties_t obs_get_source_properties(enum obs_source_type type,
 EXPORT obs_properties_t obs_get_source_properties(enum obs_source_type type,
-		const char *id, const char *locale);
+		const char *id);
 
 
 /**
 /**
  * Returns the properties list for a specific existing source.  Free with
  * Returns the properties list for a specific existing source.  Free with
  * obs_properties_destroy
  * obs_properties_destroy
  */
  */
-EXPORT obs_properties_t obs_source_properties(obs_source_t source,
-		const char *locale);
+EXPORT obs_properties_t obs_source_properties(obs_source_t source);
 
 
 /** Updates settings for this source */
 /** Updates settings for this source */
 EXPORT void obs_source_update(obs_source_t source, obs_data_t settings);
 EXPORT void obs_source_update(obs_source_t source, obs_data_t settings);
@@ -752,8 +751,7 @@ EXPORT void obs_sceneitem_get_box_transform(obs_sceneitem_t item,
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 /* Outputs */
 /* Outputs */
 
 
-EXPORT const char *obs_output_getdisplayname(const char *id,
-		const char *locale);
+EXPORT const char *obs_output_getdisplayname(const char *id);
 
 
 /**
 /**
  * Creates an output.
  * Creates an output.
@@ -778,15 +776,13 @@ EXPORT bool obs_output_active(obs_output_t output);
 EXPORT obs_data_t obs_output_defaults(const char *id);
 EXPORT obs_data_t obs_output_defaults(const char *id);
 
 
 /** Returns the property list, if any.  Free with obs_properties_destroy */
 /** Returns the property list, if any.  Free with obs_properties_destroy */
-EXPORT obs_properties_t obs_get_output_properties(const char *id,
-		const char *locale);
+EXPORT obs_properties_t obs_get_output_properties(const char *id);
 
 
 /**
 /**
  * Returns the property list of an existing output, if any.  Free with
  * Returns the property list of an existing output, if any.  Free with
  * obs_properties_destroy
  * obs_properties_destroy
  */
  */
-EXPORT obs_properties_t obs_output_properties(obs_output_t output,
-		const char *locale);
+EXPORT obs_properties_t obs_output_properties(obs_output_t output);
 
 
 /** Updates the settings for this output context */
 /** Updates the settings for this output context */
 EXPORT void obs_output_update(obs_output_t output, obs_data_t settings);
 EXPORT void obs_output_update(obs_output_t output, obs_data_t settings);
@@ -898,8 +894,7 @@ EXPORT void obs_output_signal_stop(obs_output_t output, int code);
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 /* Encoders */
 /* Encoders */
 
 
-EXPORT const char *obs_encoder_getdisplayname(const char *id,
-		const char *locale);
+EXPORT const char *obs_encoder_getdisplayname(const char *id);
 
 
 /**
 /**
  * Creates a video encoder context
  * Creates a video encoder context
@@ -933,15 +928,13 @@ EXPORT const char *obs_encoder_get_codec(obs_encoder_t encoder);
 EXPORT obs_data_t obs_encoder_defaults(const char *id);
 EXPORT obs_data_t obs_encoder_defaults(const char *id);
 
 
 /** Returns the property list, if any.  Free with obs_properties_destroy */
 /** Returns the property list, if any.  Free with obs_properties_destroy */
-EXPORT obs_properties_t obs_get_encoder_properties(const char *id,
-		const char *locale);
+EXPORT obs_properties_t obs_get_encoder_properties(const char *id);
 
 
 /**
 /**
  * Returns the property list of an existing encoder, if any.  Free with
  * Returns the property list of an existing encoder, if any.  Free with
  * obs_properties_destroy
  * obs_properties_destroy
  */
  */
-EXPORT obs_properties_t obs_encoder_properties(obs_encoder_t encoder,
-		const char *locale);
+EXPORT obs_properties_t obs_encoder_properties(obs_encoder_t encoder);
 
 
 /**
 /**
  * Updates the settings of the encoder context.  Usually used for changing
  * Updates the settings of the encoder context.  Usually used for changing
@@ -987,8 +980,7 @@ EXPORT void obs_free_encoder_packet(struct encoder_packet *packet);
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 /* Stream Services */
 /* Stream Services */
 
 
-EXPORT const char *obs_service_getdisplayname(const char *id,
-		const char *locale);
+EXPORT const char *obs_service_getdisplayname(const char *id);
 
 
 EXPORT obs_service_t obs_service_create(const char *id, const char *name,
 EXPORT obs_service_t obs_service_create(const char *id, const char *name,
 		obs_data_t settings);
 		obs_data_t settings);
@@ -1000,15 +992,13 @@ EXPORT const char *obs_service_getname(obs_service_t service);
 EXPORT obs_data_t obs_service_defaults(const char *id);
 EXPORT obs_data_t obs_service_defaults(const char *id);
 
 
 /** Returns the property list, if any.  Free with obs_properties_destroy */
 /** Returns the property list, if any.  Free with obs_properties_destroy */
-EXPORT obs_properties_t obs_get_service_properties(const char *id,
-		const char *locale);
+EXPORT obs_properties_t obs_get_service_properties(const char *id);
 
 
 /**
 /**
  * Returns the property list of an existing service context, if any.  Free with
  * Returns the property list of an existing service context, if any.  Free with
  * obs_properties_destroy
  * obs_properties_destroy
  */
  */
-EXPORT obs_properties_t obs_service_properties(obs_service_t service,
-		const char *locale);
+EXPORT obs_properties_t obs_service_properties(obs_service_t service);
 
 
 /** Gets the service type */
 /** Gets the service type */
 EXPORT const char *obs_service_gettype(obs_service_t service);
 EXPORT const char *obs_service_gettype(obs_service_t service);

+ 2 - 3
obs/window-basic-main.cpp

@@ -210,7 +210,7 @@ static inline bool HasAudioDevices(const char *source_id)
 {
 {
 	const char *output_id = source_id;
 	const char *output_id = source_id;
 	obs_properties_t props = obs_get_source_properties(
 	obs_properties_t props = obs_get_source_properties(
-			OBS_SOURCE_TYPE_INPUT, output_id, App()->GetLocale());
+			OBS_SOURCE_TYPE_INPUT, output_id);
 	size_t count = 0;
 	size_t count = 0;
 
 
 	if (!props)
 	if (!props)
@@ -1299,8 +1299,7 @@ void OBSBasic::AddSourcePopupMenu(const QPoint &pos)
 	QMenu popup;
 	QMenu popup;
 	while (obs_enum_input_types(idx++, &type)) {
 	while (obs_enum_input_types(idx++, &type)) {
 		const char *name = obs_source_getdisplayname(
 		const char *name = obs_source_getdisplayname(
-				OBS_SOURCE_TYPE_INPUT,
-				type, App()->GetLocale());
+				OBS_SOURCE_TYPE_INPUT, type);
 
 
 		if (strcmp(type, "scene") == 0)
 		if (strcmp(type, "scene") == 0)
 			continue;
 			continue;

+ 2 - 2
obs/window-basic-properties.cpp

@@ -44,8 +44,8 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
 	obs_data_release(settings);
 	obs_data_release(settings);
 
 
 	view = new OBSPropertiesView(settings,
 	view = new OBSPropertiesView(settings,
-			obs_source_properties(source, App()->GetLocale()),
-			source, (PropertiesUpdateCallback)obs_source_update);
+			obs_source_properties(source), source,
+			(PropertiesUpdateCallback)obs_source_update);
 
 
 	layout()->addWidget(view);
 	layout()->addWidget(view);
 	layout()->setAlignment(view, Qt::AlignBottom);
 	layout()->setAlignment(view, Qt::AlignBottom);

+ 4 - 6
obs/window-basic-settings.cpp

@@ -212,8 +212,7 @@ void OBSBasicSettings::LoadServiceTypes()
 	size_t        idx = 0;
 	size_t        idx = 0;
 
 
 	while (obs_enum_service_types(idx++, &type)) {
 	while (obs_enum_service_types(idx++, &type)) {
-		const char *name = obs_service_getdisplayname(type,
-				App()->GetLocale());
+		const char *name = obs_service_getdisplayname(type);
 		QString qName = QT_UTF8(name);
 		QString qName = QT_UTF8(name);
 		QString qType = QT_UTF8(type);
 		QString qType = QT_UTF8(type);
 
 
@@ -229,8 +228,7 @@ void OBSBasicSettings::LoadServiceInfo()
 	QLayout          *layout    = ui->streamContainer->layout();
 	QLayout          *layout    = ui->streamContainer->layout();
 	obs_service_t    service    = main->GetService();
 	obs_service_t    service    = main->GetService();
 	obs_data_t       settings   = obs_service_get_settings(service);
 	obs_data_t       settings   = obs_service_get_settings(service);
-	obs_properties_t properties = obs_service_properties(service,
-			App()->GetLocale());
+	obs_properties_t properties = obs_service_properties(service);
 
 
 	delete streamProperties;
 	delete streamProperties;
 	streamProperties = new OBSPropertiesView(
 	streamProperties = new OBSPropertiesView(
@@ -480,9 +478,9 @@ void OBSBasicSettings::LoadAudioDevices()
 	const char *output_id = App()->OutputAudioSource();
 	const char *output_id = App()->OutputAudioSource();
 
 
 	obs_properties_t input_props = obs_get_source_properties(
 	obs_properties_t input_props = obs_get_source_properties(
-			OBS_SOURCE_TYPE_INPUT, input_id, App()->GetLocale());
+			OBS_SOURCE_TYPE_INPUT, input_id);
 	obs_properties_t output_props = obs_get_source_properties(
 	obs_properties_t output_props = obs_get_source_properties(
-			OBS_SOURCE_TYPE_INPUT, output_id, App()->GetLocale());
+			OBS_SOURCE_TYPE_INPUT, output_id);
 
 
 	if (input_props) {
 	if (input_props) {
 		obs_property_t inputs  = obs_properties_get(input_props,
 		obs_property_t inputs  = obs_properties_get(input_props,

+ 1 - 2
obs/window-basic-source-select.cpp

@@ -169,8 +169,7 @@ OBSBasicSourceSelect::OBSBasicSourceSelect(OBSBasic *parent, const char *type_)
 	ui->setupUi(this);
 	ui->setupUi(this);
 
 
 	QString placeHolderText{QT_UTF8(obs_source_getdisplayname(
 	QString placeHolderText{QT_UTF8(obs_source_getdisplayname(
-				OBS_SOURCE_TYPE_INPUT,
-				type_, App()->GetLocale()))};
+				OBS_SOURCE_TYPE_INPUT, type_))};
 
 
 	QString text{placeHolderText};
 	QString text{placeHolderText};
 	int i = 1;
 	int i = 1;

+ 9 - 9
plugins/linux-pulseaudio/pulse-input.c

@@ -281,7 +281,7 @@ skip:
 /**
 /**
  * Get plugin properties
  * Get plugin properties
  */
  */
-static obs_properties_t pulse_properties(const char *locale, bool input)
+static obs_properties_t pulse_properties(bool input)
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 	obs_property_t devices = obs_properties_add_list(props, "device_id",
 	obs_property_t devices = obs_properties_add_list(props, "device_id",
@@ -295,14 +295,14 @@ static obs_properties_t pulse_properties(const char *locale, bool input)
 	return props;
 	return props;
 }
 }
 
 
-static obs_properties_t pulse_input_properties(const char *locale)
+static obs_properties_t pulse_input_properties(void)
 {
 {
-	return pulse_properties(locale, true);
+	return pulse_properties(true);
 }
 }
 
 
-static obs_properties_t pulse_output_properties(const char *locale)
+static obs_properties_t pulse_output_properties(void)
 {
 {
-	return pulse_properties(locale, false);
+	return pulse_properties(false);
 }
 }
 
 
 /**
 /**
@@ -366,15 +366,15 @@ static void pulse_output_defaults(obs_data_t settings)
 /**
 /**
  * Returns the name of the plugin
  * Returns the name of the plugin
  */
  */
-static const char *pulse_input_getname(const char *locale)
+static const char *pulse_input_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "Pulse Audio Input Capture";
 	return "Pulse Audio Input Capture";
 }
 }
 
 
-static const char *pulse_output_getname(const char *locale)
+static const char *pulse_output_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "Pulse Audio Output Capture";
 	return "Pulse Audio Output Capture";
 }
 }
 
 

+ 4 - 3
plugins/linux-v4l2/v4l2-input.c

@@ -266,9 +266,9 @@ exit:
 	return NULL;
 	return NULL;
 }
 }
 
 
-static const char* v4l2_getname(const char* locale)
+static const char* v4l2_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "V4L2 Capture Input";
 	return "V4L2 Capture Input";
 }
 }
 
 
@@ -452,8 +452,9 @@ static bool resolution_selected(obs_properties_t props, obs_property_t p,
 	return true;
 	return true;
 }
 }
 
 
-static obs_properties_t v4l2_properties(const char *locale)
+static obs_properties_t v4l2_properties(void)
 {
 {
+	/* TODO: locale */
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 	obs_property_t device_list = obs_properties_add_list(props, "device_id",
 	obs_property_t device_list = obs_properties_add_list(props, "device_id",
 			"Device", OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_STRING);
 			"Device", OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_STRING);

+ 4 - 5
plugins/linux-xcomposite/plugin-main.cpp

@@ -37,9 +37,9 @@ static uint32_t xcompcap_getheight(void* data)
 	return cc->height();
 	return cc->height();
 }
 }
 
 
-static obs_properties_t xcompcap_props(const char *locale)
+static obs_properties_t xcompcap_props(void)
 {
 {
-	return XCompcapMain::properties(locale);
+	return XCompcapMain::properties();
 }
 }
 
 
 void xcompcap_defaults(obs_data_t settings)
 void xcompcap_defaults(obs_data_t settings)
@@ -55,10 +55,9 @@ void xcompcap_update(void *data, obs_data_t settings)
 
 
 OBS_DECLARE_MODULE()
 OBS_DECLARE_MODULE()
 
 
-static const char* xcompcap_getname(const char* locale)
+static const char* xcompcap_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
-
+	/* TODO: locale */
 	return "Xcomposite capture";
 	return "Xcomposite capture";
 }
 }
 
 

+ 1 - 1
plugins/linux-xcomposite/xcompcap-main.cpp

@@ -46,7 +46,7 @@ void XCompcapMain::deinit()
 	XCompcap::cleanupDisplay();
 	XCompcap::cleanupDisplay();
 }
 }
 
 
-obs_properties_t XCompcapMain::properties(const char *locale)
+obs_properties_t XCompcapMain::properties()
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 
 

+ 1 - 1
plugins/linux-xcomposite/xcompcap-main.h

@@ -8,7 +8,7 @@ class XCompcapMain
 	static bool init();
 	static bool init();
 	static void deinit();
 	static void deinit();
 
 
-	static obs_properties_t properties(const char *locale);
+	static obs_properties_t properties();
 	static void defaults(obs_data_t settings);
 	static void defaults(obs_data_t settings);
 
 
 	XCompcapMain(obs_data_t settings, obs_source_t source);
 	XCompcapMain(obs_data_t settings, obs_source_t source);

+ 4 - 3
plugins/linux-xshm/xshm-input.c

@@ -108,9 +108,9 @@ static int_fast32_t xshm_update_geometry(struct xshm_data *data,
 /**
 /**
  * Returns the name of the plugin
  * Returns the name of the plugin
  */
  */
-static const char* xshm_getname(const char* locale)
+static const char* xshm_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "X11 Shared Memory Screen Input";
 	return "X11 Shared Memory Screen Input";
 }
 }
 
 
@@ -154,8 +154,9 @@ static void xshm_defaults(obs_data_t defaults)
 /**
 /**
  * Get the properties for the capture
  * Get the properties for the capture
  */
  */
-static obs_properties_t xshm_properties(const char *locale)
+static obs_properties_t xshm_properties(void)
 {
 {
+	/* TODO: locale */
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 	int_fast32_t screen_max;
 	int_fast32_t screen_max;
 
 

+ 2 - 3
plugins/mac-avcapture/av-capture.m

@@ -131,10 +131,9 @@ static inline void update_frame_size(struct av_capture *capture,
 }
 }
 @end
 @end
 
 
-static const char *av_capture_getname(const char *locale)
+static const char *av_capture_getname(void)
 {
 {
 	/* TODO: locale */
 	/* TODO: locale */
-	UNUSED_PARAMETER(locale);
 	return "Video Capture Device";
 	return "Video Capture Device";
 }
 }
 
 
@@ -569,7 +568,7 @@ static bool properties_device_changed(obs_properties_t props, obs_property_t p,
 	return true;
 	return true;
 }
 }
 
 
-static obs_properties_t av_capture_properties(char const *locale)
+static obs_properties_t av_capture_properties(void)
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 
 

+ 7 - 9
plugins/mac-capture/mac-audio.c

@@ -628,17 +628,15 @@ static void coreaudio_uninit(struct coreaudio_data *ca)
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *coreaudio_input_getname(const char *locale)
+static const char *coreaudio_input_getname(void)
 {
 {
 	/* TODO: Locale */
 	/* TODO: Locale */
-	UNUSED_PARAMETER(locale);
 	return "CoreAudio Input Capture";
 	return "CoreAudio Input Capture";
 }
 }
 
 
-static const char *coreaudio_output_getname(const char *locale)
+static const char *coreaudio_output_getname(void)
 {
 {
 	/* TODO: Locale */
 	/* TODO: Locale */
-	UNUSED_PARAMETER(locale);
 	return "CoreAudio Output Capture";
 	return "CoreAudio Output Capture";
 }
 }
 
 
@@ -704,7 +702,7 @@ static void *coreaudio_create_output_capture(obs_data_t settings,
 	return coreaudio_create(settings, source, false);
 	return coreaudio_create(settings, source, false);
 }
 }
 
 
-static obs_properties_t coreaudio_properties(const char *locale, bool input)
+static obs_properties_t coreaudio_properties(bool input)
 {
 {
 	obs_properties_t   props = obs_properties_create();
 	obs_properties_t   props = obs_properties_create();
 	obs_property_t     property;
 	obs_property_t     property;
@@ -732,14 +730,14 @@ static obs_properties_t coreaudio_properties(const char *locale, bool input)
 	return props;
 	return props;
 }
 }
 
 
-static obs_properties_t coreaudio_input_properties(const char *locale)
+static obs_properties_t coreaudio_input_properties(void)
 {
 {
-	return coreaudio_properties(locale, true);
+	return coreaudio_properties(true);
 }
 }
 
 
-static obs_properties_t coreaudio_output_properties(const char *locale)
+static obs_properties_t coreaudio_output_properties(void)
 {
 {
-	return coreaudio_properties(locale, false);
+	return coreaudio_properties(false);
 }
 }
 
 
 struct obs_source_info coreaudio_input_capture_info = {
 struct obs_source_info coreaudio_input_capture_info = {

+ 3 - 3
plugins/obs-ffmpeg/obs-ffmpeg-aac.c

@@ -44,9 +44,9 @@ struct aac_encoder {
 	int              frame_size_bytes;
 	int              frame_size_bytes;
 };
 };
 
 
-static const char *aac_getname(const char *locale)
+static const char *aac_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "FFmpeg Default AAC Encoder";
 	return "FFmpeg Default AAC Encoder";
 }
 }
 
 
@@ -238,7 +238,7 @@ static void aac_defaults(obs_data_t settings)
 	obs_data_set_default_int(settings, "bitrate", 128);
 	obs_data_set_default_int(settings, "bitrate", 128);
 }
 }
 
 
-static obs_properties_t aac_properties(const char *locale)
+static obs_properties_t aac_properties(void)
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 
 

+ 2 - 2
plugins/obs-ffmpeg/obs-ffmpeg-output.c

@@ -396,9 +396,9 @@ fail:
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *ffmpeg_output_getname(const char *locale)
+static const char *ffmpeg_output_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "FFmpeg file output";
 	return "FFmpeg file output";
 }
 }
 
 

+ 3 - 3
plugins/obs-libfdk/obs-libfdk.c

@@ -59,13 +59,13 @@ typedef struct libfdk_encoder {
 	int packet_buffer_size;
 	int packet_buffer_size;
 } libfdk_encoder_t;
 } libfdk_encoder_t;
 
 
-static const char *libfdk_getname(const char *locale)
+static const char *libfdk_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "libfdk aac encoder";
 	return "libfdk aac encoder";
 }
 }
 
 
-static obs_properties_t libfdk_properties(const char *locale)
+static obs_properties_t libfdk_properties(void)
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 
 

+ 3 - 3
plugins/obs-outputs/flv-output.c

@@ -32,9 +32,9 @@ struct flv_output {
 	int64_t      last_packet_ts;
 	int64_t      last_packet_ts;
 };
 };
 
 
-static const char *flv_output_getname(const char *locale)
+static const char *flv_output_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "FLV File Output";
 	return "FLV File Output";
 }
 }
 
 
@@ -189,7 +189,7 @@ static void flv_output_data(void *data, struct encoder_packet *packet)
 	}
 	}
 }
 }
 
 
-static obs_properties_t flv_output_properties(const char *locale)
+static obs_properties_t flv_output_properties(void)
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 
 

+ 2 - 3
plugins/obs-outputs/rtmp-stream.c

@@ -61,10 +61,9 @@ struct rtmp_stream {
 	RTMP             rtmp;
 	RTMP             rtmp;
 };
 };
 
 
-static const char *rtmp_stream_getname(const char *locale)
+static const char *rtmp_stream_getname(void)
 {
 {
 	/* TODO: locale stuff */
 	/* TODO: locale stuff */
-	UNUSED_PARAMETER(locale);
 	return "RTMP Stream";
 	return "RTMP Stream";
 }
 }
 
 
@@ -567,7 +566,7 @@ static void rtmp_stream_defaults(obs_data_t defaults)
 	obs_data_set_default_int(defaults, "drop_threshold", 600000);
 	obs_data_set_default_int(defaults, "drop_threshold", 600000);
 }
 }
 
 
-static obs_properties_t rtmp_stream_properties(const char *locale)
+static obs_properties_t rtmp_stream_properties(void)
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 
 

+ 2 - 3
plugins/obs-x264/obs-x264.c

@@ -38,10 +38,9 @@ struct obs_x264 {
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *obs_x264_getname(const char *locale)
+static const char *obs_x264_getname(void)
 {
 {
 	/* TODO locale lookup */
 	/* TODO locale lookup */
-	UNUSED_PARAMETER(locale);
 	return "x264";
 	return "x264";
 }
 }
 
 
@@ -93,7 +92,7 @@ static inline void add_strings(obs_property_t list, const char *const *strings)
 	}
 	}
 }
 }
 
 
-static obs_properties_t obs_x264_props(const char *locale)
+static obs_properties_t obs_x264_props(void)
 {
 {
 	/* TODO: locale */
 	/* TODO: locale */
 
 

+ 2 - 4
plugins/rtmp-services/rtmp-common.c

@@ -8,10 +8,8 @@ struct rtmp_common {
 	char *key;
 	char *key;
 };
 };
 
 
-static const char *rtmp_common_getname(const char *locale)
+static const char *rtmp_common_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
-
 	/* TODO: locale */
 	/* TODO: locale */
 	return "Streaming Services";
 	return "Streaming Services";
 }
 }
@@ -200,7 +198,7 @@ static bool service_selected(obs_properties_t props, obs_property_t p,
 	return true;
 	return true;
 }
 }
 
 
-static obs_properties_t rtmp_common_properties(const char *locale)
+static obs_properties_t rtmp_common_properties(void)
 {
 {
 	obs_properties_t ppts = obs_properties_create();
 	obs_properties_t ppts = obs_properties_create();
 	obs_property_t   list;
 	obs_property_t   list;

+ 2 - 4
plugins/rtmp-services/rtmp-custom.c

@@ -4,10 +4,8 @@ struct rtmp_custom {
 	char *server, *key;
 	char *server, *key;
 };
 };
 
 
-static const char *rtmp_custom_name(const char *locale)
+static const char *rtmp_custom_name(void)
 {
 {
-	UNUSED_PARAMETER(locale);
-
 	/* TODO: locale */
 	/* TODO: locale */
 	return "Custom Streaming Server";
 	return "Custom Streaming Server";
 }
 }
@@ -41,7 +39,7 @@ static void *rtmp_custom_create(obs_data_t settings, obs_service_t service)
 	return data;
 	return data;
 }
 }
 
 
-static obs_properties_t rtmp_custom_properties(const char *locale)
+static obs_properties_t rtmp_custom_properties(void)
 {
 {
 	obs_properties_t ppts = obs_properties_create();
 	obs_properties_t ppts = obs_properties_create();
 
 

+ 2 - 2
plugins/win-capture/monitor-capture.c

@@ -81,9 +81,9 @@ static inline void update_settings(struct monitor_capture *capture,
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *monitor_capture_getname(const char *locale)
+static const char *monitor_capture_getname(void)
 {
 {
-	/* TODO: translate */
+	/* TODO: locale */
 	return "Monitor Capture";
 	return "Monitor Capture";
 }
 }
 
 

+ 2 - 3
plugins/win-capture/window-capture.c

@@ -294,10 +294,9 @@ static HWND find_window(struct window_capture *wc)
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *wc_getname(const char *locale)
+static const char *wc_getname(void)
 {
 {
 	/* TODO: locale */
 	/* TODO: locale */
-	UNUSED_PARAMETER(locale);
 	return "Window capture";
 	return "Window capture";
 }
 }
 
 
@@ -362,7 +361,7 @@ static void wc_defaults(obs_data_t defaults)
 	obs_data_setbool(defaults, "compatibility", false);
 	obs_data_setbool(defaults, "compatibility", false);
 }
 }
 
 
-static obs_properties_t wc_properties(const char *locale)
+static obs_properties_t wc_properties(void)
 {
 {
 	obs_properties_t ppts = obs_properties_create();
 	obs_properties_t ppts = obs_properties_create();
 	obs_property_t p;
 	obs_property_t p;

+ 3 - 3
plugins/win-dshow/win-dshow.cpp

@@ -251,9 +251,9 @@ void DShowInput::Update(obs_data_t settings)
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *GetDShowInputName(const char *locale)
+static const char *GetDShowInputName(void)
 {
 {
-	UNUSED_PARAMETER(locale);
+	/* TODO: locale */
 	return "Video Capture Device";
 	return "Video Capture Device";
 }
 }
 
 
@@ -778,7 +778,7 @@ static bool DeviceIntervalChanged(obs_properties_t props, obs_property_t p,
 	return true;
 	return true;
 }
 }
 
 
-static obs_properties_t GetDShowProperties(const char *locale)
+static obs_properties_t GetDShowProperties(void)
 {
 {
 	obs_properties_t ppts = obs_properties_create();
 	obs_properties_t ppts = obs_properties_create();
 	PropertiesData *data = new PropertiesData;
 	PropertiesData *data = new PropertiesData;

+ 7 - 7
plugins/win-wasapi/win-wasapi.cpp

@@ -416,13 +416,13 @@ DWORD WINAPI WASAPISource::CaptureThread(LPVOID param)
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *GetWASAPIInputName(const char *locale)
+static const char *GetWASAPIInputName(void)
 {
 {
 	/* TODO: translate */
 	/* TODO: translate */
 	return "Audio Input Capture (WASAPI)";
 	return "Audio Input Capture (WASAPI)";
 }
 }
 
 
-static const char *GetWASAPIOutputName(const char *locale)
+static const char *GetWASAPIOutputName(void)
 {
 {
 	/* TODO: translate */
 	/* TODO: translate */
 	return "Audio Output Capture (WASAPI)";
 	return "Audio Output Capture (WASAPI)";
@@ -466,7 +466,7 @@ static void UpdateWASAPISource(void *obj, obs_data_t settings)
 	static_cast<WASAPISource*>(obj)->Update(settings);
 	static_cast<WASAPISource*>(obj)->Update(settings);
 }
 }
 
 
-static obs_properties_t GetWASAPIProperties(const char *locale, bool input)
+static obs_properties_t GetWASAPIProperties(bool input)
 {
 {
 	obs_properties_t props = obs_properties_create();
 	obs_properties_t props = obs_properties_create();
 	vector<AudioDeviceInfo> devices;
 	vector<AudioDeviceInfo> devices;
@@ -494,14 +494,14 @@ static obs_properties_t GetWASAPIProperties(const char *locale, bool input)
 	return props;
 	return props;
 }
 }
 
 
-static obs_properties_t GetWASAPIPropertiesInput(const char *locale)
+static obs_properties_t GetWASAPIPropertiesInput(void)
 {
 {
-	return GetWASAPIProperties(locale, true);
+	return GetWASAPIProperties(true);
 }
 }
 
 
-static obs_properties_t GetWASAPIPropertiesOutput(const char *locale)
+static obs_properties_t GetWASAPIPropertiesOutput(void)
 {
 {
-	return GetWASAPIProperties(locale, false);
+	return GetWASAPIProperties(false);
 }
 }
 
 
 void RegisterWASAPIInput()
 void RegisterWASAPIInput()

+ 3 - 4
test/test-input/test-desktop.m

@@ -258,9 +258,8 @@ static void display_capture_video_render(void *data, effect_t effect)
 	technique_end(tech);
 	technique_end(tech);
 }
 }
 
 
-static const char *display_capture_getname(const char *locale)
+static const char *display_capture_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
 	return "Display Capture";
 	return "Display Capture";
 }
 }
 
 
@@ -300,9 +299,9 @@ static void display_capture_update(void *data, obs_data_t settings)
 	gs_leavecontext();
 	gs_leavecontext();
 }
 }
 
 
-static obs_properties_t display_capture_properties(char const *locale)
+static obs_properties_t display_capture_properties(void)
 {
 {
-	obs_properties_t props = obs_properties_create(locale);
+	obs_properties_t props = obs_properties_create();
 
 
 	obs_property_t list = obs_properties_add_list(props,
 	obs_property_t list = obs_properties_add_list(props,
 			"display", "Display",
 			"display", "Display",

+ 1 - 2
test/test-input/test-filter.c

@@ -5,9 +5,8 @@ struct test_filter {
 	effect_t whatever;
 	effect_t whatever;
 };
 };
 
 
-static const char *filter_getname(const char *locale)
+static const char *filter_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
 	return "Test";
 	return "Test";
 }
 }
 
 

+ 1 - 2
test/test-input/test-random.c

@@ -10,9 +10,8 @@ struct random_tex {
 	bool         initialized;
 	bool         initialized;
 };
 };
 
 
-static const char *random_getname(const char *locale)
+static const char *random_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
 	return "20x20 Random Pixel Texture Source (Test)";
 	return "20x20 Random Pixel Texture Source (Test)";
 }
 }
 
 

+ 1 - 2
test/test-input/test-sinewave.c

@@ -58,9 +58,8 @@ static void *sinewave_thread(void *pdata)
 
 
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
 
 
-static const char *sinewave_getname(const char *locale)
+static const char *sinewave_getname(void)
 {
 {
-	UNUSED_PARAMETER(locale);
 	return "Sinewave Sound Source (Test)";
 	return "Sinewave Sound Source (Test)";
 }
 }