mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
gst/gstcaps.h: jdahlin, what are you smoking? We can't just change API right now! Readd gst_caps_is_simple() macro.
Original commit message from CVS: * gst/gstcaps.h: jdahlin, what are you smoking? We can't just change API right now! Readd gst_caps_is_simple() macro. * gst/gstelement.c: (gst_element_base_class_finalize): Fix uninitialized variable. I'd bet this caused crashes. * gst/gstinfo.c: (gst_debug_print_object): Fix 64-bit cleanliness.
This commit is contained in:
parent
8c7f46ced0
commit
365e091451
4 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-03-12 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/gstcaps.h: jdahlin, what are you smoking? We can't just
|
||||
change API right now! Readd gst_caps_is_simple() macro.
|
||||
* gst/gstelement.c: (gst_element_base_class_finalize): Fix
|
||||
uninitialized variable. I'd bet this caused crashes.
|
||||
* gst/gstinfo.c: (gst_debug_print_object): Fix 64-bit cleanliness.
|
||||
|
||||
2004-03-12 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* gst/gstcaps.h (GST_CAPS_IS_SIMPLE): Capitalize macro
|
||||
|
|
|
@ -38,6 +38,7 @@ G_BEGIN_DECLS
|
|||
#define GST_STATIC_CAPS_NONE GST_STATIC_CAPS("NONE")
|
||||
|
||||
#define GST_CAPS_IS_SIMPLE(caps) (gst_caps_get_size(caps) == 1)
|
||||
#define gst_caps_is_simple(caps) GST_CAPS_IS_SIMPLE(caps)
|
||||
|
||||
#ifndef GST_DISABLE_DEPRECATED
|
||||
#define GST_DEBUG_CAPS(string, caps) \
|
||||
|
|
|
@ -180,7 +180,7 @@ gst_element_base_class_init (gpointer g_class)
|
|||
static void
|
||||
gst_element_base_class_finalize (gpointer g_class)
|
||||
{
|
||||
GstElementClass *klass = GST_ELEMENT_CLASS (klass);
|
||||
GstElementClass *klass = GST_ELEMENT_CLASS (g_class);
|
||||
|
||||
g_list_foreach (klass->padtemplates, (GFunc) g_object_unref, NULL);
|
||||
g_list_free (klass->padtemplates);
|
||||
|
|
|
@ -374,7 +374,7 @@ gst_debug_print_object (gpointer ptr)
|
|||
return gst_structure_to_string ((GstStructure *)ptr);
|
||||
}
|
||||
#ifdef USE_POISONING
|
||||
if (*(int *)ptr == 0xffffffff) {
|
||||
if (*(guint32 *)ptr == 0xffffffff) {
|
||||
return g_strdup_printf ("<poisoned@%p>", ptr);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue