summaryrefslogtreecommitdiffstats
path: root/tools/gui/control.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 16:31:06 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 16:31:06 +0200
commitbe1bfae1ecef5032e667174da4b4ad016d47887b (patch)
tree24c8a2a51f753b3648e6721d4503a7e15957aa8f /tools/gui/control.c
parent63a030a0d65f4ab77a2cbc138eaf5782e276e290 (diff)
downloaduca-be1bfae1ecef5032e667174da4b4ad016d47887b.tar.gz
uca-be1bfae1ecef5032e667174da4b4ad016d47887b.tar.bz2
uca-be1bfae1ecef5032e667174da4b4ad016d47887b.tar.xz
uca-be1bfae1ecef5032e667174da4b4ad016d47887b.zip
Reflect correct state of camera
Diffstat (limited to 'tools/gui/control.c')
-rw-r--r--tools/gui/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gui/control.c b/tools/gui/control.c
index eab2be7..5e8860f 100644
--- a/tools/gui/control.c
+++ b/tools/gui/control.c
@@ -205,8 +205,6 @@ on_start_button_clicked (GtkWidget *widget, gpointer args)
ThreadData *data = (ThreadData *) args;
GError *error = NULL;
- data->state = RUNNING;
-
set_tool_button_state (data);
uca_camera_start_recording (data->camera, &error);
@@ -219,6 +217,8 @@ on_start_button_clicked (GtkWidget *widget, gpointer args)
g_printerr ("Failed to create thread: %s\n", error->message);
return;
}
+
+ data->state = RUNNING;
}
static void