GNOME Bugzilla – Bug 141304
GST_CAPS and GST_IS_CAPS broken
Last modified: 2004-12-22 21:47:04 UTC
As thomasvs observed, the GST_CAPS and GST_IS_CAPS macros are broken. GstCaps is not a GTypeInstance (as GObject is), so one can't use the G_TYPE_INSTANCE_ stuff on it. Attached a test program that demonstrates the problem and shows that the fix works. Patch for gstcaps.h attached. Cheers -Tim
Created attachment 27168 [details] [review] patch for gstcaps.h
Created attachment 27169 [details] test case
Created attachment 27170 [details] [review] gstcaps.c - replaced all caps != NULL assertions with GST_IS_CAPS(caps) etc. <Company> bitshifter: for added bonus, replace all g_return_if_fail (caps != NULL) with g_return_if_fail (GST_IS_CAPS (caps)) and similar Please double-check especially the GValue asserts in gst_caps_transform_to_string() for sanity. Cheers -Tim
Applied to CVS. Thanks.