summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-10-23 17:33:18 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-10-23 17:33:18 +0200
commit85fb58bf097a027af3cd356fffabadf76e9c321e (patch)
treede30ae9fcb02c4f73315b9b952ead3f273b8d3ed /plugins
parent63be34b54a400d1a4d589793654f825e1f97d27e (diff)
downloadlibuca-85fb58bf097a027af3cd356fffabadf76e9c321e.tar.gz
libuca-85fb58bf097a027af3cd356fffabadf76e9c321e.tar.bz2
libuca-85fb58bf097a027af3cd356fffabadf76e9c321e.tar.xz
libuca-85fb58bf097a027af3cd356fffabadf76e9c321e.zip
pco: fix #9, override is-recording property
Diffstat (limited to 'plugins')
-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;