From: David S. <ds...@pd...> - 2004-03-13 00:15:07
|
CVS Root: /home/cvs/gstreamer Module: gstreamer Changes by: ds Date: Fri Mar 12 2004 16:14:59 PST Log message: * 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. Modified files: gst : gstcaps.h gstelement.c gstinfo.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstcaps.h.diff?r1=1.70&r2=1.71 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstelement.c.diff?r1=1.264&r2=1.265 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstinfo.c.diff?r1=1.78&r2=1.79 ====Begin Diffs==== Index: gstcaps.h =================================================================== RCS file: /home/cvs/gstreamer/gstreamer/gst/gstcaps.h,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- a/gstcaps.h 12 Mar 2004 19:32:25 -0000 1.70 +++ b/gstcaps.h 13 Mar 2004 00:14:46 -0000 1.71 @@ -38,6 +38,7 @@ #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: gstelement.c RCS file: /home/cvs/gstreamer/gstreamer/gst/gstelement.c,v retrieving revision 1.264 retrieving revision 1.265 diff -u -d -r1.264 -r1.265 --- a/gstelement.c 9 Mar 2004 14:44:35 -0000 1.264 +++ b/gstelement.c 13 Mar 2004 00:14:46 -0000 1.265 @@ -180,7 +180,7 @@ 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: gstinfo.c RCS file: /home/cvs/gstreamer/gstreamer/gst/gstinfo.c,v retrieving revision 1.78 retrieving revision 1.79 diff -u -d -r1.78 -r1.79 --- a/gstinfo.c 20 Feb 2004 13:18:31 -0000 1.78 +++ b/gstinfo.c 13 Mar 2004 00:14:46 -0000 1.79 @@ -374,7 +374,7 @@ 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 |