mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +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
65f13f70f6
commit
f90bddfa39
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