From 0a11fdefc495c0f1966f2cefdc8acf8de4475c31 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 10 May 2012 16:24:06 +0200 Subject: Fix wrong height --- src/cameras/uca-pco-camera.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cameras') diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c index f17d66a..677f523 100644 --- a/src/cameras/uca-pco-camera.c +++ b/src/cameras/uca-pco-camera.c @@ -355,12 +355,13 @@ UcaPcoCamera *uca_pco_camera_new(GError **error) return NULL; } + const guint32 fg_height = priv->height; const guint32 fg_width = camera_type == CAMERATYPE_PCO_EDGE ? priv->width * 2 : priv->width; FG_TRY_PARAM(priv->fg, camera, FG_CAMERA_LINK_CAMTYP, &map_entry->cl_type, priv->fg_port); FG_TRY_PARAM(priv->fg, camera, FG_FORMAT, &map_entry->cl_format, priv->fg_port); FG_TRY_PARAM(priv->fg, camera, FG_WIDTH, &fg_width, priv->fg_port); - FG_TRY_PARAM(priv->fg, camera, FG_HEIGHT, &priv->height, priv->fg_port); + FG_TRY_PARAM(priv->fg, camera, FG_HEIGHT, &fg_height, priv->fg_port); int val = FREE_RUN; FG_TRY_PARAM(priv->fg, camera, FG_TRIGGERMODE, &val, priv->fg_port); -- cgit v1.2.3