Continue refactoring of global state
This commit is contained in:
@@ -1072,9 +1072,8 @@ update_state(MPPipeline *pipeline, const struct mp_process_pipeline_state *state
|
||||
on_output_changed(format_changed);
|
||||
}
|
||||
|
||||
struct mp_main_state main_state = {
|
||||
mp_state_main new_state = {
|
||||
.camera = pr_camera,
|
||||
.mode = mode,
|
||||
.gain_is_manual = state->gain_is_manual,
|
||||
.gain = gain,
|
||||
.gain_max = gain_max,
|
||||
@@ -1082,10 +1081,10 @@ update_state(MPPipeline *pipeline, const struct mp_process_pipeline_state *state
|
||||
.exposure = exposure,
|
||||
.has_auto_focus_continuous = state->has_auto_focus_continuous,
|
||||
.has_auto_focus_start = state->has_auto_focus_start,
|
||||
.image_width = output_buffer_width,
|
||||
.image_height = output_buffer_height,
|
||||
.preview_buffer_width = output_buffer_width,
|
||||
.preview_buffer_height = output_buffer_height,
|
||||
};
|
||||
mp_main_update_state(&main_state);
|
||||
mp_main_update_state(&new_state);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user