GNOME Bugzilla – Bug 142423
Forte problems with building gstreamer
Last modified: 2004-12-22 21:47:04 UTC
gst-plugins fails to build due to a problem with the GST_ELEMENT_ERROR macro in gstelement.h. In fact, I'm not sure how this code compiles on Linux without parens around the function arguments.
Created attachment 27649 [details] [review] patch fixing this problem
the message and debug paramters must already have () around them. It's a strange contruction, but essentially the only way to do it in C, since it's trying to be a function that takes two set of variadic arguments.
Closing this bug. I just realized that the bug is actually because the call to GST_ELEMENT_ERROR in gst/ffmpegcolorspace/gstffmpegcolorspace.c passes NULL into the macro instead of (NULL). This has been already fixed in CVS head.
It works under Linux because Linux defines NULL as (0x0) instead of 0 (which is how it's defined in C++, Solaris, BSD, etc.).