From 908c0b3f9c1e8265cc4f12157c2d63de1fa1193f Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 13 Jan 2017 12:05:29 +0100 Subject: Fix #80: trigger must not block on the access_lock This defeats the purpose of software triggers which in most cases have to happen in a thread different from the one grabbing actual frames. --- src/uca-camera.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/uca-camera.c b/src/uca-camera.c index 1c88cea..7987632 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -989,9 +989,7 @@ uca_camera_trigger (UcaCamera *camera, GError **error) if (!camera->priv->is_recording) g_set_error (error, UCA_CAMERA_ERROR, UCA_CAMERA_ERROR_NOT_RECORDING, "Camera is not recording"); else { - g_static_mutex_lock (&access_lock); (*klass->trigger) (camera, error); - g_static_mutex_unlock (&access_lock); } g_static_mutex_unlock (&mutex); -- cgit v1.2.3