summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <olivier.crete@collabora.co.uk>2008-10-23 03:50:55 (GMT)
committerOlivier Crête <olivier.crete@collabora.co.uk>2008-10-23 03:51:02 (GMT)
commitf4d60c2c8b34c51b094ab314b0811bdc45455255 (patch)
tree7fd97651ead638568f2e8fb6610649390e1c9707
parent2bd0fe52799e7313e5cf1c41c997294cb78d9006 (diff)
downloadgst-plugins-farsight-tester-f4d60c2c8b34c51b094ab314b0811bdc45455255.tar.gz
gst-plugins-farsight-tester-f4d60c2c8b34c51b094ab314b0811bdc45455255.tar.xz
Put the default at the end of the switches
-rw-r--r--gst/selector/fsselector.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gst/selector/fsselector.c b/gst/selector/fsselector.c
index c3a36d7..5b8a532 100644
--- a/gst/selector/fsselector.c
+++ b/gst/selector/fsselector.c
@@ -236,9 +236,6 @@ fs_selector_set_property (GObject *object,
FsSelector *fsselector = FS_SELECTOR (object);
switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- break;
case PROP_FACTORIES:
GST_OBJECT_LOCK (fsselector);
if (fsselector->factories == NULL)
@@ -248,6 +245,9 @@ fs_selector_set_property (GObject *object,
" have been set or auto-discovered");
GST_OBJECT_UNLOCK (fsselector);
break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
}
}
@@ -258,14 +258,15 @@ fs_selector_get_property (GObject *object,
FsSelector *fsselector = FS_SELECTOR (object);
switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- break;
case PROP_FACTORIES:
GST_OBJECT_LOCK (fsselector);
g_value_set_pointer (value, &fsselector->factories);
GST_OBJECT_UNLOCK (fsselector);
break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+
}
}