gst/gstcaps.h: jdahlin, what are you smoking? We can't just change API right now...
authorDavid Schleef <ds@schleef.org>
Sat, 13 Mar 2004 00:14:46 +0000 (00:14 +0000)
committerDavid Schleef <ds@schleef.org>
Sat, 13 Mar 2004 00:14:46 +0000 (00:14 +0000)
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.

ChangeLog
gst/gstcaps.h
gst/gstelement.c
gst/gstinfo.c

index d4eba8b..d4ec988 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 51adeda..65f4e71 100644 (file)
@@ -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) \
index d6c6788..f52d767 100644 (file)
@@ -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);
index 5704bf0..3579f27 100644 (file)
@@ -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