summaryrefslogtreecommitdiffstats
path: root/src/cameras
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-05-10 16:24:06 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-05-10 16:24:06 +0200
commit0a11fdefc495c0f1966f2cefdc8acf8de4475c31 (patch)
treeb4bf15ab39f0189d448f69c99fce3e41dd608638 /src/cameras
parentd667d891e174cb353f335e2edbceed5e935206e3 (diff)
downloadlibuca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.tar.gz
libuca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.tar.bz2
libuca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.tar.xz
libuca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.zip
Fix wrong height
Diffstat (limited to 'src/cameras')
-rw-r--r--src/cameras/uca-pco-camera.c3
1 files changed, 2 insertions, 1 deletions
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);