valve: move default: parst in the switch statement to the end

Now sure if it matters, but the previous form looks weired.
This commit is contained in:
Stefan Kost 2010-09-28 14:26:11 +03:00 committed by Tim-Philipp Müller
parent 65f13f70f6
commit f90bddfa39

View file

@ -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;
}
}