mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
d5497ccd53
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
27 lines
548 B
C
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
|
|
|