X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstcaps.c;h=f49409812ad744b991797ddfce9e61412b60b733;hb=1be934f0ddac980437d800f4f5b79e3d5c91eafa;hp=57f8ae69684b4871af3fa8a2610151e4d6eb4f03;hpb=393c758a1c2ddf738e4fdc31123cbd5a41fb0b43;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 57f8ae6..f494098 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -177,19 +177,17 @@ _gst_caps_free (GstCaps * caps) g_ptr_array_free (GST_CAPS_ARRAY (caps), TRUE); #ifdef DEBUG_REFCOUNT - GST_CAT_LOG (GST_CAT_CAPS, "freeing caps %p", caps); + GST_CAT_TRACE (GST_CAT_CAPS, "freeing caps %p", caps); #endif - g_slice_free1 (GST_MINI_OBJECT_SIZE (caps), caps); + g_slice_free1 (sizeof (GstCapsImpl), caps); } static void -gst_caps_init (GstCaps * caps, gsize size) +gst_caps_init (GstCaps * caps) { - gst_mini_object_init (GST_MINI_OBJECT_CAST (caps), _gst_caps_type, size); - - caps->mini_object.copy = (GstMiniObjectCopyFunction) _gst_caps_copy; - caps->mini_object.dispose = NULL; - caps->mini_object.free = (GstMiniObjectFreeFunction) _gst_caps_free; + gst_mini_object_init (GST_MINI_OBJECT_CAST (caps), _gst_caps_type, + (GstMiniObjectCopyFunction) _gst_caps_copy, NULL, + (GstMiniObjectFreeFunction) _gst_caps_free); /* the 32 has been determined by logging caps sizes in _gst_caps_free * but g_ptr_array uses 16 anyway if it expands once, so this does not help @@ -216,7 +214,7 @@ gst_caps_new_empty (void) caps = (GstCaps *) g_slice_new (GstCapsImpl); - gst_caps_init (caps, sizeof (GstCapsImpl)); + gst_caps_init (caps); #ifdef DEBUG_REFCOUNT GST_CAT_TRACE (GST_CAT_CAPS, "created caps %p", caps); @@ -1037,8 +1035,6 @@ gst_caps_is_subset_structure (const GstCaps * caps, * This function does not work reliably if optional properties for caps * are included on one caps and omitted on the other. * - * This function deals correctly with passing NULL for any of the caps. - * * Returns: TRUE if both caps are equal. */ gboolean @@ -1063,8 +1059,6 @@ gst_caps_is_equal (const GstCaps * caps1, const GstCaps * caps2) * * Checks if the given caps are exactly the same set of caps. * - * This function deals correctly with passing NULL for any of the caps. - * * Returns: TRUE if both caps are strictly equal. * * Since: 0.10.36