From 1d49c3e05cf3228c44186ee60541de7b8c7536ea Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Tue, 29 Jul 2014 19:09:23 +0200 Subject: Fixed a bug in mock plugin Fixed test-mock still using obsolete 'frame-rate' property --- plugins/mock/uca-mock-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mock') diff --git a/plugins/mock/uca-mock-camera.c b/plugins/mock/uca-mock-camera.c index c97344e..4ae4077 100644 --- a/plugins/mock/uca-mock-camera.c +++ b/plugins/mock/uca-mock-camera.c @@ -202,7 +202,7 @@ mock_grab_func(gpointer data) UcaMockCameraPrivate *priv = UCA_MOCK_CAMERA_GET_PRIVATE(mock_camera); UcaCamera *camera = UCA_CAMERA(mock_camera); - gfloat fps = 0; + gdouble fps = 0; g_object_get (G_OBJECT (data), "frames-per-second", &fps, NULL); const gulong sleep_time = (gulong) G_USEC_PER_SEC / fps; -- cgit v1.2.3