encoding-profile: Add missing break statement

And do a minor cleanup

COVERITY CID 1139753
This commit is contained in:
Edward Hervey 2013-12-30 17:30:15 +01:00
parent bc8213e21e
commit b08598da1c

View file

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