summaryrefslogtreecommitdiffstats
path: root/plugins/pco/uca-pco-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-12-12 15:52:35 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-12-12 15:52:35 +0100
commit1c358be868c74bb01efd3819e6ef65cde7fe7017 (patch)
tree4d237dc45da67783207eb801edcacba3aa394bd5 /plugins/pco/uca-pco-camera.c
parent5e0222e521c43ccc7074856cf43ecc8d1bcaaec8 (diff)
downloadlibuca-1c358be868c74bb01efd3819e6ef65cde7fe7017.tar.gz
libuca-1c358be868c74bb01efd3819e6ef65cde7fe7017.tar.bz2
libuca-1c358be868c74bb01efd3819e6ef65cde7fe7017.tar.xz
libuca-1c358be868c74bb01efd3819e6ef65cde7fe7017.zip
Fix #20: don't query props if pco is recording
Diffstat (limited to 'plugins/pco/uca-pco-camera.c')
-rw-r--r--plugins/pco/uca-pco-camera.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/pco/uca-pco-camera.c b/plugins/pco/uca-pco-camera.c
index bae7b53..6e53279 100644
--- a/plugins/pco/uca-pco-camera.c
+++ b/plugins/pco/uca-pco-camera.c
@@ -819,9 +819,19 @@ uca_pco_camera_set_property(GObject *object, guint property_id, const GValue *va
static void
uca_pco_camera_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
{
- UcaPcoCameraPrivate *priv = UCA_PCO_CAMERA_GET_PRIVATE(object);
+ UcaPcoCameraPrivate *priv;
guint err = PCO_NOERROR;
+ priv = UCA_PCO_CAMERA_GET_PRIVATE(object);
+
+ /* Should fix #20 */
+ if (uca_camera_is_recording (UCA_CAMERA (object))) {
+ if (priv->description->type == CAMERATYPE_PCO_EDGE ||
+ priv->description->type == CAMERATYPE_PCO4000) {
+ return;
+ }
+ }
+
switch (property_id) {
case PROP_SENSOR_EXTENDED:
{