mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
obs-filters: Remove unused assignments
This commit is contained in:
@@ -142,8 +142,6 @@ static void calc_crop_dimensions(struct crop_filter_data *filter,
|
||||
uint32_t height;
|
||||
|
||||
if (!target) {
|
||||
width = 0;
|
||||
height = 0;
|
||||
return;
|
||||
} else {
|
||||
width = obs_source_get_base_width(target);
|
||||
|
||||
@@ -102,13 +102,13 @@ static obs_properties_t *hdr_tonemap_filter_properties(void *data)
|
||||
{
|
||||
obs_properties_t *props = obs_properties_create();
|
||||
|
||||
obs_property_t *p = obs_properties_add_text(
|
||||
props, "override_info",
|
||||
obs_module_text("HdrTonemap.Description"), OBS_TEXT_INFO);
|
||||
obs_properties_add_text(props, "override_info",
|
||||
obs_module_text("HdrTonemap.Description"),
|
||||
OBS_TEXT_INFO);
|
||||
|
||||
p = obs_properties_add_list(props, "transform",
|
||||
obs_module_text("HdrTonemap.ToneTransform"),
|
||||
OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_INT);
|
||||
obs_property_t *p = obs_properties_add_list(
|
||||
props, "transform", obs_module_text("HdrTonemap.ToneTransform"),
|
||||
OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_INT);
|
||||
obs_property_list_add_int(p, obs_module_text("HdrTonemap.SdrReinhard"),
|
||||
TRANSFORM_SDR_REINHARD);
|
||||
obs_property_list_add_int(p, obs_module_text("HdrTonemap.HdrMaxrgb"),
|
||||
|
||||
@@ -1046,8 +1046,6 @@ noise_suppress_filter_audio(void *data, struct obs_audio_data *audio)
|
||||
size_t segment_size = ng->frames * sizeof(float);
|
||||
size_t out_size;
|
||||
obs_source_t *parent = obs_filter_get_parent(ng->context);
|
||||
const char *name = obs_source_get_name(parent);
|
||||
const char *id = obs_source_get_id(parent);
|
||||
enum speaker_layout layout = obs_source_get_speaker_layout(parent);
|
||||
ng->has_mono_src = layout == SPEAKERS_MONO && ng->channels == 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user