From 85fb58bf097a027af3cd356fffabadf76e9c321e Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 23 Oct 2013 17:33:18 +0200 Subject: pco: fix #9, override is-recording property --- plugins/pco/uca-pco-camera.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins/pco') 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; -- cgit v1.2.3