diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-05-10 16:24:06 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-05-10 16:24:06 +0200 |
commit | 0a11fdefc495c0f1966f2cefdc8acf8de4475c31 (patch) | |
tree | b4bf15ab39f0189d448f69c99fce3e41dd608638 /src/cameras/uca-pco-camera.c | |
parent | d667d891e174cb353f335e2edbceed5e935206e3 (diff) | |
download | uca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.tar.gz uca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.tar.bz2 uca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.tar.xz uca-0a11fdefc495c0f1966f2cefdc8acf8de4475c31.zip |
Fix wrong height
Diffstat (limited to 'src/cameras/uca-pco-camera.c')
-rw-r--r-- | src/cameras/uca-pco-camera.c | 3 |
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); |