X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstcapsfeatures.c;h=2f433a229576f3c95f4a18bcec8c9f28758d4d2e;hb=5688773b91c3ea1094996a573f119230727a0978;hp=38fcef74721f9c394fd186fa9f81e7a917a332ee;hpb=23434848d3ddfe25f455d48793cf0438c9ec7966;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstcapsfeatures.c b/gst/gstcapsfeatures.c index 38fcef7..2f433a2 100644 --- a/gst/gstcapsfeatures.c +++ b/gst/gstcapsfeatures.c @@ -20,7 +20,8 @@ /** * SECTION:gstcapsfeatures - * @short_description: A set of features in caps + * @title: GstCapsFeatures + * @short_description: A set of features in caps * @see_also: #GstCaps * * #GstCapsFeatures can optionally be set on a #GstCaps to add requirements @@ -105,6 +106,18 @@ _priv_gst_caps_features_initialize (void) &static_caps_features_parent_refcount); } +void +_priv_gst_caps_features_cleanup (void) +{ + gst_caps_features_set_parent_refcount (_gst_caps_features_any, NULL); + gst_caps_features_free (_gst_caps_features_any); + _gst_caps_features_any = NULL; + gst_caps_features_set_parent_refcount + (_gst_caps_features_memory_system_memory, NULL); + gst_caps_features_free (_gst_caps_features_memory_system_memory); + _gst_caps_features_memory_system_memory = NULL; +} + gboolean gst_is_caps_features (gconstpointer obj) { @@ -203,7 +216,7 @@ gst_caps_features_new_any (void) * @...: additional features * * Creates a new #GstCapsFeatures with the given features. - * The last argument must be NULL. + * The last argument must be %NULL. * * Free-function: gst_caps_features_free * @@ -414,7 +427,7 @@ gst_caps_features_free (GstCapsFeatures * features) * Converts @features to a human-readable string representation. * * For debugging purposes its easier to do something like this: - * |[ + * |[ * GST_LOG ("features is %" GST_PTR_FORMAT, features); * ]| * This prints the features in human readable form. @@ -471,8 +484,9 @@ priv_gst_caps_features_append_to_gstring (const GstCapsFeatures * features, * * Free-function: gst_caps_features_free * - * Returns: (transfer full): a new #GstCapsFeatures or NULL when the string could - * not be parsed. Free with gst_caps_features_free() after use. + * Returns: (transfer full) (nullable): a new #GstCapsFeatures or + * %NULL when the string could not be parsed. Free with + * gst_caps_features_free() after use. * * Since: 1.2 */ @@ -579,7 +593,7 @@ gst_caps_features_get_size (const GstCapsFeatures * features) * * Returns the @i-th feature of @features. * - * Returns: The @i-th feature of @features. + * Returns: (nullable): The @i-th feature of @features. * * Since: 1.2 */ @@ -787,7 +801,7 @@ gst_caps_features_add_id (GstCapsFeatures * features, GQuark feature) } /* If features is empty it will contain sysmem, however - * we want to add it explicitely if it is tried to be + * we want to add it explicitly if it is attempted to be * added as first features */ if (features->array->len > 0