mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
source-mirror: Remove useless group
This commit is contained in:
parent
a47dbaefc8
commit
53d4ad31e6
1 changed files with 46 additions and 60 deletions
|
@ -377,11 +377,7 @@ try {
|
|||
return true;
|
||||
}
|
||||
return false;
|
||||
} catch (const std::exception& ex) {
|
||||
LOG_ERROR("Unexpected exception in function '%s': %s.", __FUNCTION_NAME__, ex.what());
|
||||
return false;
|
||||
} catch (...) {
|
||||
LOG_ERROR("Unexpected exception in function '%s'.", __FUNCTION_NAME__);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -391,15 +387,7 @@ obs_properties_t* mirror::mirror_factory::get_properties2(mirror::mirror_instanc
|
|||
obs_property_t* p = nullptr;
|
||||
|
||||
{
|
||||
obs_properties_t* grp = pr;
|
||||
if (!util::are_property_groups_broken()) {
|
||||
grp = obs_properties_create();
|
||||
p = obs_properties_add_group(pr, ST, D_TRANSLATE(ST_SOURCE), OBS_GROUP_NORMAL, grp);
|
||||
//obs_property_set_long_description(p, D_TRANSLATE(D_DESC(ST)));
|
||||
}
|
||||
|
||||
{
|
||||
p = obs_properties_add_list(grp, ST_SOURCE, D_TRANSLATE(ST_SOURCE), OBS_COMBO_TYPE_LIST,
|
||||
p = obs_properties_add_list(pr, ST_SOURCE, D_TRANSLATE(ST_SOURCE), OBS_COMBO_TYPE_LIST,
|
||||
OBS_COMBO_FORMAT_STRING);
|
||||
obs_property_set_long_description(p, D_TRANSLATE(D_DESC(ST_SOURCE)));
|
||||
obs_property_set_modified_callback(p, modified_properties);
|
||||
|
@ -424,18 +412,17 @@ obs_properties_t* mirror::mirror_factory::get_properties2(mirror::mirror_instanc
|
|||
}
|
||||
|
||||
{
|
||||
p = obs_properties_add_bool(grp, ST_SOURCE_AUDIO, D_TRANSLATE(ST_SOURCE_AUDIO));
|
||||
p = obs_properties_add_bool(pr, ST_SOURCE_AUDIO, D_TRANSLATE(ST_SOURCE_AUDIO));
|
||||
obs_property_set_long_description(p, D_TRANSLATE(D_DESC(ST_SOURCE_AUDIO)));
|
||||
obs_property_set_modified_callback(p, modified_properties);
|
||||
}
|
||||
|
||||
{
|
||||
p = obs_properties_add_list(grp, ST_SOURCE_AUDIO_LAYOUT, D_TRANSLATE(ST_SOURCE_AUDIO_LAYOUT),
|
||||
p = obs_properties_add_list(pr, ST_SOURCE_AUDIO_LAYOUT, D_TRANSLATE(ST_SOURCE_AUDIO_LAYOUT),
|
||||
OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_INT);
|
||||
obs_property_list_add_int(p, D_TRANSLATE(ST_SOURCE_AUDIO_LAYOUT_(Unknown)),
|
||||
static_cast<int64_t>(SPEAKERS_UNKNOWN));
|
||||
obs_property_list_add_int(p, D_TRANSLATE(ST_SOURCE_AUDIO_LAYOUT_(Mono)),
|
||||
static_cast<int64_t>(SPEAKERS_MONO));
|
||||
obs_property_list_add_int(p, D_TRANSLATE(ST_SOURCE_AUDIO_LAYOUT_(Mono)), static_cast<int64_t>(SPEAKERS_MONO));
|
||||
obs_property_list_add_int(p, D_TRANSLATE(ST_SOURCE_AUDIO_LAYOUT_(Stereo)),
|
||||
static_cast<int64_t>(SPEAKERS_STEREO));
|
||||
obs_property_list_add_int(p, D_TRANSLATE(ST_SOURCE_AUDIO_LAYOUT_(StereoLFE)),
|
||||
|
@ -450,7 +437,6 @@ obs_properties_t* mirror::mirror_factory::get_properties2(mirror::mirror_instanc
|
|||
static_cast<int64_t>(SPEAKERS_7POINT1));
|
||||
obs_property_set_long_description(p, D_TRANSLATE(D_DESC(ST_SOURCE_AUDIO_LAYOUT)));
|
||||
}
|
||||
}
|
||||
|
||||
return pr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue