From b08598da1c44c3f5eebd5e4007ae25f0b6ae791b Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 30 Dec 2013 17:30:15 +0100 Subject: [PATCH] encoding-profile: Add missing break statement And do a minor cleanup COVERITY CID 1139753 --- gst-libs/gst/pbutils/encoding-profile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index f3aaddc1e7..695d2e8122 100644 --- a/gst-libs/gst/pbutils/encoding-profile.c +++ b/gst-libs/gst/pbutils/encoding-profile.c @@ -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;