fix compilation

This commit is contained in:
Wim Taymans 2010-11-02 12:58:14 +01:00
parent b82a0f5050
commit cdde34f0ee
6 changed files with 6 additions and 8 deletions

View file

@ -170,7 +170,7 @@ _gst_buffer_initialize (void)
/* the GstMiniObject types need to be class_ref'd once before it can be
* done from multiple threads;
* see http://bugzilla.gnome.org/show_bug.cgi?id=304551 */
g_type_class_ref (gst_buffer_get_type ());
gst_buffer_get_type ();
#ifdef HAVE_GETPAGESIZE
#ifdef BUFFER_ALIGNMENT_PAGESIZE
_gst_buffer_data_alignment = getpagesize ();

View file

@ -166,7 +166,6 @@ _gst_buffer_list_initialize (void)
{
GType type = gst_buffer_list_get_type ();
g_type_class_ref (type);
_gst_buffer_list_type = type;
}

View file

@ -110,7 +110,7 @@
/* quick way to append a structure without checking the args */
#define gst_caps_append_structure_unchecked(caps, structure) G_STMT_START{\
GstStructure *__s=structure; \
gst_structure_set_parent_refcount (__s, &caps->refcount); \
gst_structure_set_parent_refcount (__s, &GST_MINI_OBJECT_REFCOUNT(caps)); \
g_ptr_array_add (caps->structs, __s); \
}G_STMT_END

View file

@ -266,8 +266,8 @@ gst_element_register (GstPlugin * plugin, const gchar * name, guint rank,
newt->name_template = g_intern_string (templ->name_template);
newt->direction = templ->direction;
newt->presence = templ->presence;
newt->static_caps.caps.refcount = 0;
newt->static_caps.string = g_intern_string (caps_string);
newt->static_caps.caps.mini_object.refcount = 0;
newt->static_caps.string = gst_caps_to_string (templ->caps);
factory->staticpadtemplates =
g_list_append (factory->staticpadtemplates, newt);

View file

@ -227,7 +227,6 @@ gst_mini_object_ref (GstMiniObject * mini_object)
* the object
g_return_val_if_fail (mini_object->refcount > 0, NULL);
*/
g_return_val_if_fail (GST_IS_MINI_OBJECT (mini_object), NULL);
GST_CAT_TRACE (GST_CAT_REFCOUNTING, "%p ref %d->%d", mini_object,
GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object),
@ -248,7 +247,7 @@ gst_mini_object_ref (GstMiniObject * mini_object)
void
gst_mini_object_unref (GstMiniObject * mini_object)
{
g_return_if_fail (GST_IS_MINI_OBJECT (mini_object));
g_return_if_fail (mini_object != NULL);
g_return_if_fail (mini_object->refcount > 0);
GST_CAT_TRACE (GST_CAT_REFCOUNTING, "%p unref %d->%d",

View file

@ -493,7 +493,7 @@ gst_registry_chunks_load_pad_template (GstElementFactory * factory, gchar ** in,
template = g_slice_new (GstStaticPadTemplate);
template->presence = pt->presence;
template->direction = pt->direction;
template->static_caps.caps.refcount = 0;
template->static_caps.caps.mini_object.refcount = 0;
/* unpack pad template strings */
unpack_const_string (*in, template->name_template, end, fail);