gstreamer/gst/glib-compat.h
Thomas Vander Stichele d5497ccd53 gst/: use gst_object_ref when setting the pad template; this will trigger the pad template leaks on GLib 2.6 and the ...
Original commit message from CVS:

* gst/glib-compat.c: (g_value_dup_gst_object):
* gst/glib-compat.h:
* gst/gstpad.c: (gst_pad_set_property):
use gst_object_ref when setting the pad template; this will
trigger the pad template leaks on GLib 2.6 and the slaves
2005-11-16 12:40:18 +00:00

27 lines
548 B
C

/*
* glib-compat.c
* Functions copied from glib 2.6 and 2.8
*
* Copyright 2005 David Schleef <ds@schleef.org>
*/
#include "gst_private.h" /* for g_warning */
#include <glib.h>
G_BEGIN_DECLS
/* copies */
#if !GLIB_CHECK_VERSION (2, 8, 0)
int g_mkdir_with_parents (const gchar *pathname, int mode);
#endif
/* adaptations */
#include <glib-object.h>
GFlagsValue*
gst_flags_get_first_value (GFlagsClass *flags_class,
guint value);
GObject*
g_value_dup_gst_object (const GValue *value);
G_END_DECLS