mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
obs-x264: Remove unused getparam() function
This commit is contained in:
parent
867938cd9d
commit
5c0a018628
@ -237,22 +237,6 @@ static obs_properties_t *obs_x264_props(void *unused)
|
||||
return props;
|
||||
}
|
||||
|
||||
static bool getparam(const char *param, char **name, const char **value)
|
||||
{
|
||||
const char *assign;
|
||||
|
||||
if (!param || !*param || (*param == '='))
|
||||
return false;
|
||||
|
||||
assign = strchr(param, '=');
|
||||
if (!assign || !*assign || !*(assign + 1))
|
||||
return false;
|
||||
|
||||
*name = bstrdup_n(param, assign - param);
|
||||
*value = assign + 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
static const char *validate(struct obs_x264 *obsx264, const char *val,
|
||||
const char *name, const char *const *list)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user