summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-07-26 15:36:02 +0200
committerVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-07-26 15:36:43 +0200
commit310c98755e0c8fe1d95d4e4e43b7d08c70d06353 (patch)
treef8729a48289445cdc632f4bb86bb53f4e7503ff4
parentc16b7cccb72374be1ad6aed2310c137dc4ed4e0c (diff)
downloadlibuca-310c98755e0c8fe1d95d4e4e43b7d08c70d06353.tar.gz
libuca-310c98755e0c8fe1d95d4e4e43b7d08c70d06353.tar.bz2
libuca-310c98755e0c8fe1d95d4e4e43b7d08c70d06353.tar.xz
libuca-310c98755e0c8fe1d95d4e4e43b7d08c70d06353.zip
adjusted pylon additions
-rw-r--r--src/uca-camera.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c
index 602a3c4..78adae3 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -382,6 +382,11 @@ static UcaCamera *uca_camera_new_from_type(const gchar *type, GError **error)
return UCA_CAMERA(uca_pco_camera_new(error));
#endif
+#ifdef HAVE_PYLON_CAMERA
+ if (!g_strcmp0(type, "pylon"))
+ return UCA_CAMERA(uca_pylon_camera_new(error));
+#endif
+
#ifdef HAVE_UFO_CAMERA
if (!g_strcmp0(type, "ufo"))
return UCA_CAMERA(uca_ufo_camera_new(error));
@@ -425,10 +430,6 @@ UcaCamera *uca_camera_new(const gchar *type, GError **error)
camera = uca_camera_new_from_type(type, &tmp_error);
-#ifdef HAVE_PYLON_CAMERA
- if (!g_strcmp0(type, "pylon"))
- camera = UCA_CAMERA(uca_pylon_camera_new(&tmp_error));
-#endif
if (tmp_error != NULL) {
g_propagate_error(error, tmp_error);
return NULL;