diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-03 16:39:06 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-03 16:39:06 +0100 |
commit | 5105d4fa81e4566ab9dd654ea3d9a7597766e746 (patch) | |
tree | 371cacd4854209583b4b40ed946cbe62af321ec3 /src/cameras | |
parent | 3761b79dc771022e2f39fb22708d7436f5f02e12 (diff) | |
download | uca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.gz uca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.bz2 uca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.xz uca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.zip |
Add start/stop signal
Diffstat (limited to 'src/cameras')
-rw-r--r-- | src/cameras/uca-mock-camera.c | 5 | ||||
-rw-r--r-- | src/cameras/uca-pco-camera.c | 4 |
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) |