Skip to content

Commit

Permalink
show version in properties
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Dec 11, 2022
1 parent 0d48a1c commit 4e27c04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,13 +1039,19 @@ static bool encoder_changed(void *data, obs_properties_t *props,
UNUSED_PARAMETER(property);
UNUSED_PARAMETER(settings);
obs_properties_remove_by_name(props, "encoder_group");
obs_properties_remove_by_name(props, "plugin_info");
const char *enc_id = get_encoder_id(settings);
obs_properties_t *enc_props = obs_get_encoder_properties(enc_id);
if (enc_props) {
obs_properties_add_group(props, "encoder_group",
obs_encoder_get_display_name(enc_id),
OBS_GROUP_NORMAL, enc_props);
}
obs_properties_add_text(
props, "plugin_info",
"<a href=\"https://obsproject.com/forum/resources/source-record.1285/\">Source Record</a> (" PROJECT_VERSION
") by <a href=\"https://www.exeldro.com\">Exeldro</a>",
OBS_TEXT_INFO);
return true;
}

Expand Down

0 comments on commit 4e27c04

Please sign in to comment.