Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreading camera settings change #40

Closed
neilthomson opened this issue Nov 13, 2017 · 2 comments
Closed

Multithreading camera settings change #40

neilthomson opened this issue Nov 13, 2017 · 2 comments

Comments

@neilthomson
Copy link

I have several cameras connected to one computer, and these cameras (Sony A5000) are very slow to change their settings and python_gphoto2 does it unthreaded so settings only change on one camera at a time, takes a while.

I have recompiled with gp_camera_set_config and gp_camera_set_single_config as threaded and it works fine with the Sonys at least. I can make a pull request if this can be merged in, unless there's a reason not to?

@jim-easterbrook
Copy link
Owner

I assume you mean adding this to camera.i:

%thread gp_camera_set_config;
%thread gp_camera_set_single_config;

I can't think why I haven't already done this. I suppose it wasn't painfully slow with the cameras I've used, unlike gp_camera_get_config. No need to bother with a pull request, I'll just do it.

@jim-easterbrook
Copy link
Owner

This is now released in v1.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants