summaryrefslogtreecommitdiffstats
path: root/src/cameras
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-03 16:39:06 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-03 16:39:06 +0100
commit5105d4fa81e4566ab9dd654ea3d9a7597766e746 (patch)
tree371cacd4854209583b4b40ed946cbe62af321ec3 /src/cameras
parent3761b79dc771022e2f39fb22708d7436f5f02e12 (diff)
downloadlibuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.gz
libuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.bz2
libuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.xz
libuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.zip
Add start/stop signal
Diffstat (limited to 'src/cameras')
-rw-r--r--src/cameras/uca-mock-camera.c5
-rw-r--r--src/cameras/uca-pco-camera.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/src/cameras/uca-mock-camera.c b/src/cameras/uca-mock-camera.c
index 8a40bcd..c4f790d 100644
--- a/src/cameras/uca-mock-camera.c
+++ b/src/cameras/uca-mock-camera.c
@@ -89,7 +89,6 @@ static void uca_mock_camera_set_property(GObject *object, guint property_id, con
{
g_return_if_fail(UCA_IS_MOCK_CAMERA(object));
UcaMockCameraPrivate *priv = UCA_MOCK_CAMERA_GET_PRIVATE(object);
- g_signal_emit_by_name(object, "property-changed", pspec->name, NULL);
switch (property_id) {
case PROP_FRAMERATE:
@@ -97,8 +96,10 @@ static void uca_mock_camera_set_property(GObject *object, guint property_id, con
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
- break;
+ return;
}
+
+ g_signal_emit_by_name(object, "property-changed", pspec->name);
}
static void uca_mock_camera_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c
index 0e1267c..d543806 100644
--- a/src/cameras/uca-pco-camera.c
+++ b/src/cameras/uca-pco-camera.c
@@ -181,8 +181,10 @@ static void uca_pco_camera_set_property(GObject *object, guint property_id, cons
switch (property_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
- break;
+ return;
}
+
+ g_signal_emit_by_name(object, "property-changed", pspec->name);
}
static void uca_pco_camera_get_property(GObject *object, guint property_id, GValue *value, GParamSpec *pspec)