encoding-profile: Add missing break statement
And do a minor cleanup COVERITY CID 1139753
This commit is contained in:
parent
bc8213e21e
commit
b08598da1c
@ -216,11 +216,8 @@ _encoding_profile_get_property (GObject * object, guint prop_id,
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_RESTRICTION_CAPS:
|
||||
{
|
||||
gst_value_set_caps (value, prof->restriction);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
@ -237,6 +234,7 @@ _encoding_profile_set_property (GObject * object, guint prop_id,
|
||||
case PROP_RESTRICTION_CAPS:
|
||||
gst_encoding_profile_set_restriction (prof, gst_caps_copy
|
||||
(gst_value_get_caps (value)));
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user