From f90bddfa39272e88e9bf75eecd00e195616e935b Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 28 Sep 2010 14:26:11 +0300 Subject: [PATCH] valve: move default: parst in the switch statement to the end Now sure if it matters, but the previous form looks weired. --- plugins/elements/gstvalve.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/elements/gstvalve.c b/plugins/elements/gstvalve.c index cc8d8f0ec3..2ae11ca1d9 100644 --- a/plugins/elements/gstvalve.c +++ b/plugins/elements/gstvalve.c @@ -152,14 +152,14 @@ gst_valve_set_property (GObject * object, GstValve *valve = GST_VALVE (object); switch (prop_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; case ARG_DROP: GST_OBJECT_LOCK (object); valve->drop = g_value_get_boolean (value); GST_OBJECT_UNLOCK (object); break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; } } @@ -170,14 +170,14 @@ gst_valve_get_property (GObject * object, GstValve *valve = GST_VALVE (object); switch (prop_id) { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; case ARG_DROP: GST_OBJECT_LOCK (object); g_value_set_boolean (value, valve->drop); GST_OBJECT_UNLOCK (object); break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + break; } }