Don't call libmegapixels_open twice in a row in io_pipeline
This commit is contained in:

committed by
Martijn Braam

parent
8f37625309
commit
f8628a344c
@@ -577,7 +577,6 @@ update_state(MPPipeline *pipeline, const mp_state_io *new_state)
|
||||
|
||||
state_io.camera = new_state->camera;
|
||||
if (state_io.camera) {
|
||||
libmegapixels_open(state_io.camera);
|
||||
mpcamera = mp_camera_new(state_io.camera);
|
||||
state_io.mode_preview = NULL;
|
||||
state_io.mode_capture = NULL;
|
||||
|
Reference in New Issue
Block a user