mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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:
parent
5fa5e2d777
commit
d0d4055732
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue