From: Stefan Kost Date: Tue, 28 Sep 2010 11:26:11 +0000 (+0300) Subject: valve: move default: parst in the switch statement to the end X-Git-Tag: RELEASE-0.11.1~632 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0d40557325a14cad255d61031afd50d6a2ba494;p=platform%2Fupstream%2Fgst-plugins-bad.git valve: move default: parst in the switch statement to the end Now sure if it matters, but the previous form looks weired. --- diff --git a/gst/valve/gstvalve.c b/gst/valve/gstvalve.c index cc8d8f0..2ae11ca 100644 --- a/gst/valve/gstvalve.c +++ b/gst/valve/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; } }