diff options
author | Matthew Waters <matthew@centricular.com> | 2016-03-17 03:06:05 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-03-17 03:06:05 +1100 |
commit | 74bbd4c1aa2e36a7fd260969585be4226e18fac2 (patch) | |
tree | 06e14eca4d9e9d1066308f3438e0aa5d11de41b6 /gst-libs/gst | |
parent | 200767ba0eeca9b81ec0341ce477ea19b837f46b (diff) | |
download | gstreamer-plugins-bad-74bbd4c1aa2e36a7fd260969585be4226e18fac2.tar.gz |
glutils: remove custom code for setting caps features
Just use gst_caps_set_features() instead.
Diffstat (limited to 'gst-libs/gst')
-rw-r--r-- | gst-libs/gst/gl/gstglutils.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gst-libs/gst/gl/gstglutils.c b/gst-libs/gst/gl/gstglutils.c index 0290efb40..e2e04e407 100644 --- a/gst-libs/gst/gl/gstglutils.c +++ b/gst-libs/gst/gl/gstglutils.c @@ -932,17 +932,8 @@ gst_gl_caps_replace_all_caps_features (const GstCaps * caps, guint i = 0; for (i = 0; i < n; i++) { - GstCapsFeatures *features = gst_caps_get_features (tmp, i); - if (features) { - guint n_f = gst_caps_features_get_size (features); - guint j = 0; - for (j = 0; j < n_f; j++) { - gst_caps_features_remove_id (features, - gst_caps_features_get_nth_id (features, j)); - } - } - - gst_caps_features_add (features, feature_name); + gst_caps_set_features (tmp, i, + gst_caps_features_from_string (feature_name)); } return tmp; |