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/uca-mock-camera.c | |
parent | 3761b79dc771022e2f39fb22708d7436f5f02e12 (diff) | |
download | libuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.gz libuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.bz2 libuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.tar.xz libuca-5105d4fa81e4566ab9dd654ea3d9a7597766e746.zip |
Add start/stop signal
Diffstat (limited to 'src/cameras/uca-mock-camera.c')
-rw-r--r-- | src/cameras/uca-mock-camera.c | 5 |
1 files changed, 3 insertions, 2 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) |