summaryrefslogtreecommitdiffstats
path: root/plugins/file
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2015-03-09 12:35:45 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2015-03-09 12:35:45 +0100
commit65a42a4999ae080c9b8d040404150ae58b44b533 (patch)
tree6d5f74c7e7a058e1bdd518cf4aab1dac4bc652b3 /plugins/file
parent43a5d42eeaccb08b7703e01e326e397ed3cd4ac2 (diff)
parentc9b2ba6558c8212e59bd3701a2e26744caead33b (diff)
downloadlibuca-65a42a4999ae080c9b8d040404150ae58b44b533.tar.gz
libuca-65a42a4999ae080c9b8d040404150ae58b44b533.tar.bz2
libuca-65a42a4999ae080c9b8d040404150ae58b44b533.tar.xz
libuca-65a42a4999ae080c9b8d040404150ae58b44b533.zip
Merge pull request #64 from ufo-kit/WriteRestrictionPolicy
Write restriction policy
Diffstat (limited to 'plugins/file')
-rw-r--r--plugins/file/uca-file-camera.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/file/uca-file-camera.c b/plugins/file/uca-file-camera.c
index 5c7b5cb..632b8e8 100644
--- a/plugins/file/uca-file-camera.c
+++ b/plugins/file/uca-file-camera.c
@@ -221,7 +221,13 @@ uca_file_camera_set_property (GObject *object, guint property_id, const GValue *
static void
uca_file_camera_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
{
- UcaFileCameraPrivate *priv = UCA_FILE_CAMERA_GET_PRIVATE(object);
+ g_return_if_fail (UCA_IS_FILE_CAMERA (object));
+ UcaFileCameraPrivate *priv = UCA_FILE_CAMERA_GET_PRIVATE (object);
+
+ if (uca_camera_is_recording(UCA_CAMERA(object)) && !uca_camera_is_writable_during_acquisition(UCA_CAMERA(object), pspec->name)) {
+ g_warning ("Property '%s' cant be changed during acquisition", pspec->name);
+ return;
+ }
switch (property_id) {
case PROP_NAME: