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.
This commit is contained in:
@@ -32,9 +32,9 @@ struct flv_output {
|
||||
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";
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
@@ -61,10 +61,9 @@ struct rtmp_stream {
|
||||
RTMP rtmp;
|
||||
};
|
||||
|
||||
static const char *rtmp_stream_getname(const char *locale)
|
||||
static const char *rtmp_stream_getname(void)
|
||||
{
|
||||
/* TODO: locale stuff */
|
||||
UNUSED_PARAMETER(locale);
|
||||
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);
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
|
Reference in New Issue
Block a user