From: Sebastian Dröge Date: Tue, 4 Feb 2014 17:03:47 +0000 (+0100) Subject: caps: Don't get us sysmem capsfeatures if we just check for fixed caps X-Git-Tag: 1.3.1~177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e51e0cb0d3722f0d95128ad8ec7e79ae7b5e568a;p=platform%2Fupstream%2Fgstreamer.git caps: Don't get us sysmem capsfeatures if we just check for fixed caps --- diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 3856355..179f518 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -1103,7 +1103,7 @@ gst_caps_is_fixed (const GstCaps * caps) if (GST_CAPS_LEN (caps) != 1) return FALSE; - features = gst_caps_get_features (caps, 0); + features = gst_caps_get_features_unchecked (caps, 0); if (features && gst_caps_features_is_any (features)) return FALSE; @@ -2111,7 +2111,7 @@ gst_caps_fixate (GstCaps * caps) gst_structure_fixate (s); /* Set features to sysmem if they're still ANY */ - f = gst_caps_get_features (caps, 0); + f = gst_caps_get_features_unchecked (caps, 0); if (f && gst_caps_features_is_any (f)) { f = gst_caps_features_new_empty (); gst_caps_set_features (caps, 0, f);