Parcourir la source

Don't call libmegapixels_open twice in a row in io_pipeline

Kristian Vos il y a 5 mois
Parent
commit
197017c86d
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      src/io_pipeline.c

+ 0 - 1
src/io_pipeline.c

@@ -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;