summaryrefslogtreecommitdiffstats
path: root/plugins/pco
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-10-24 05:31:19 -0700
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-10-24 05:31:19 -0700
commitc90377b4c0305b608d0dc5d4f22f814e6ad51367 (patch)
treede30ae9fcb02c4f73315b9b952ead3f273b8d3ed /plugins/pco
parent63be34b54a400d1a4d589793654f825e1f97d27e (diff)
parent85fb58bf097a027af3cd356fffabadf76e9c321e (diff)
downloaduca-c90377b4c0305b608d0dc5d4f22f814e6ad51367.tar.gz
uca-c90377b4c0305b608d0dc5d4f22f814e6ad51367.tar.bz2
uca-c90377b4c0305b608d0dc5d4f22f814e6ad51367.tar.xz
uca-c90377b4c0305b608d0dc5d4f22f814e6ad51367.zip
Merge pull request #10 from ufo-kit/pco-add-is-recording
pco: fix #9, override is-recording property
Diffstat (limited to 'plugins/pco')
-rw-r--r--plugins/pco/uca-pco-camera.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/pco/uca-pco-camera.c b/plugins/pco/uca-pco-camera.c
index d1d021b..1f5af90 100644
--- a/plugins/pco/uca-pco-camera.c
+++ b/plugins/pco/uca-pco-camera.c
@@ -152,6 +152,7 @@ static gint base_overrideables[] = {
PROP_HAS_STREAMING,
PROP_HAS_CAMRAM_RECORDING,
PROP_RECORDED_FRAMES,
+ PROP_IS_RECORDING,
0
};
@@ -1077,6 +1078,15 @@ uca_pco_camera_get_property(GObject *object, guint property_id, GValue *value, G
}
break;
+ case PROP_IS_RECORDING:
+ {
+ bool is_recording;
+
+ err = pco_is_recording (priv->pco, &is_recording);
+ g_value_set_boolean (value, (gboolean) is_recording);
+ }
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
return;